Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲5.11MB] [CPU: ▲25.80ms] 75% from 4 tests
Server-side resources used by Delete old Posts automatically
Please take the time to fix the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 5.11MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.42 | 64.92 ▲19.25 |
Dashboard /wp-admin | 8.91 ▲5.60 | 77.73 ▲29.11 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 83.13 ▲30.95 |
Add New Post /wp-admin/post-new.php | 9.75 ▲3.86 | 117.74 ▲23.88 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 68.41 ▲31.94 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.91 | 63.93 |
Server storage [IO: ▲3.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 214 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
fs_debug_mode |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
fs_accounts |
fs_active_plugins |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Delete old Posts automatically
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲57 | 14.31 ▼0.03 | 1.70 ▼0.25 | 29.57 ▼14.29 |
Dashboard /wp-admin | 2,227 ▲50 | 5.49 ▼0.10 | 96.88 ▲2.82 | 45.88 ▲1.38 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 1.97 ▲0.03 | 42.22 ▲2.49 | 37.69 ▲2.56 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.17 ▲0.05 | 741.71 ▲32.15 | 56.29 ▼7.60 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.25 ▲0.07 | 97.08 ▼0.09 | 45.58 ▲2.79 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,084 | 1.65 | 25.37 | 28.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/delete-old-posts-programmatically/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_accounts
- widget_recent-posts
- db_upgraded
- fs_debug_mode
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- fs_active_plugins
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'DEL\\OLD\\Posts\\Cls\\Delete_Old_Posts' not found in wp-content/plugins/delete-old-posts-programmatically/inc/class-delete-old-posts-redirects.php:7
- > PHP Fatal error
Uncaught Error: Class 'DEL\\OLD\\Posts\\Cls\\Delete_Old_Posts' not found in wp-content/plugins/delete-old-posts-programmatically/inc/class-delete-old-posts-filters.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: There are too many tags (17 tag instead of maximum 10)
delete-old-posts-programmatically/delete-old-posts.php 85% from 13 tests
Analyzing the main PHP file in "Delete old Posts automatically" version 3.5.2
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("delete-old-posts-programmatically.php" instead of "delete-old-posts.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin45,078 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 8,282 | 17,834 | 35,250 |
JSON | 3 | 0 | 0 | 4,356 |
PO File | 9 | 907 | 920 | 3,808 |
CSS | 15 | 333 | 120 | 1,263 |
JavaScript | 7 | 39 | 74 | 400 |
Markdown | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 85.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 2 | 3.57% |
▷ Concrete classes | 54 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 1,331 | |
▷ Static methods | 199 | 14.95% |
▷ Public methods | 927 | 69.65% |
▷ Protected methods | 17 | 1.28% |
▷ Private methods | 387 | 29.08% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/blog_delete_40694.png | 4.00KB | 2.12KB | ▼ 46.95% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |