Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.52ms] Passed 4 tests
A check of server-side resources used by WP Uploads Stats
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.34 ▼3.87 |
Dashboard /wp-admin | 3.50 ▲0.20 | 44.93 ▼2.29 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 45.89 ▼1.71 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 87.17 ▼2.21 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.13 ▲1.83 |
Uploads Stats /wp-admin/upload.php?page=wpus-uploads-stats | 3.36 | 37.95 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Uploads Stats
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.68 ▲0.30 | 1.71 ▼0.32 | 40.58 ▼8.64 |
Dashboard /wp-admin | 2,207 ▲16 | 5.80 ▲0.88 | 99.16 ▼6.55 | 38.97 ▼5.36 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.97 ▼0.02 | 34.57 ▼1.58 | 34.52 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.11 ▲4.67 | 654.20 ▲52.96 | 80.09 ▲24.51 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.21 ▼0.06 | 95.38 ▼2.09 | 43.62 ▼4.20 |
Uploads Stats /wp-admin/upload.php?page=wpus-uploads-stats | 1,335 | 2.92 | 55.59 | 35.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 44× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_data() on null in wp-content/plugins/wp-uploads-stats/templates/module-attachment-by-year.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_data() on null in wp-content/plugins/wp-uploads-stats/templates/module-attachment-type.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Uploads_Stats_Module_Base' not found in wp-content/plugins/wp-uploads-stats/modules/attachment-by-year/module.php:5
- > PHP Notice
Undefined variable: wp_uploads_module in wp-content/plugins/wp-uploads-stats/templates/module-size-by-year-chart.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_data() on null in wp-content/plugins/wp-uploads-stats/templates/module-overview.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Uploads_Stats_Module_Size_By_Year' not found in wp-content/plugins/wp-uploads-stats/modules/size-by-year-chart/module.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Uploads_Stats_Module_Base' not found in wp-content/plugins/wp-uploads-stats/modules/overview/module.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Uploads_Stats_Module_File_Type' not found in wp-content/plugins/wp-uploads-stats/modules/file-type-chart/module.php:6
- > PHP Notice
Undefined variable: wp_uploads_module in wp-content/plugins/wp-uploads-stats/templates/module-attachment-by-year.php on line 2
- > PHP Notice
Undefined variable: wp_uploads_module in wp-content/plugins/wp-uploads-stats/templates/module-attachment-by-year-chart.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: stats, statistics, upload, attachment, file...
wp-uploads-stats/wp-uploads-stats.php Passed 13 tests
"WP Uploads Stats" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
Provides you with detailed statistics about your WordPress media uploads and attachments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,503 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 252 | 751 | 978 |
SVG | 1 | 0 | 0 | 250 |
JavaScript | 3 | 30 | 38 | 114 |
PO File | 1 | 33 | 37 | 90 |
Markdown | 1 | 18 | 0 | 37 |
CSS | 2 | 4 | 5 | 34 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 3 | 4.05% |
▷ Public methods | 69 | 93.24% |
▷ Protected methods | 4 | 5.41% |
▷ Private methods | 1 | 1.35% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin