Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.67ms] Passed 4 tests
An overview of server-side resources used by Posts and Users Stats
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.87 ▼2.72 |
Dashboard /wp-admin | 3.34 ▲0.03 | 52.77 ▼1.96 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.57 ▼11.96 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.92 ▼22.04 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.24 ▲2.38 |
Users Statistics /wp-admin/tools.php?page=posts_and_users_stats_users | 3.27 | 33.19 |
Comments Statistics /wp-admin/tools.php?page=posts_and_users_stats_comments | 3.32 | 36.49 |
Posts Statistics /wp-admin/tools.php?page=posts_and_users_stats_posts | 3.47 | 39.19 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Posts and Users Stats
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲15 | 14.24 ▼0.31 | 1.70 ▼0.28 | 41.06 ▼1.22 |
Dashboard /wp-admin | 2,210 ▲30 | 5.63 ▼0.04 | 87.37 ▲0.30 | 41.91 ▼2.58 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.98 ▼0.03 | 35.29 ▼6.10 | 35.11 ▼5.86 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 23.03 ▲5.04 | 640.89 ▼6.91 | 50.93 ▼15.57 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.23 ▲0.05 | 103.01 ▼5.26 | 45.63 ▼4.03 |
Users Statistics /wp-admin/tools.php?page=posts_and_users_stats_users | 895 | 2.24 | 34.61 | 36.38 |
Comments Statistics /wp-admin/tools.php?page=posts_and_users_stats_comments | 2,421 | 2.29 | 34.69 | 44.97 |
Posts Statistics /wp-admin/tools.php?page=posts_and_users_stats_posts | 2,490 | 2.19 | 34.81 | 45.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/tools.php?page=posts_and_users_stats_posts
- > Javascript (severe) in unknown
/wp-content/plugins/posts-and-users-stats/assets/functions.min.js?ver=1.1.4 3:300 Uncaught ReferenceError: moment is not defined
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: statistics, dashboard
posts-and-users-stats/posts-and-users-stats.php Passed 13 tests
The entry point to "Posts and Users Stats" version 1.1.4 is a PHP file that has certain tags in its header comment area
92 characters long description:
Statistics about the number of posts and users, provided as diagrams, tables and csv export.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,370 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 47 | 111 | 1,185 |
JavaScript | 5 | 9 | 18 | 146 |
CSS | 3 | 10 | 0 | 39 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin