Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/adrotate/adrotate.php+67
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.89MB] [CPU: ▲3.06ms] Passed 4 tests
Analyzing server-side resources used by AdRotate Banner Manager - The only ad manager you'll need
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.92 | 47.89 ▲8.58 |
Dashboard /wp-admin | 4.22 ▲0.92 | 57.41 ▲11.20 |
Posts /wp-admin/edit.php | 4.28 ▲0.92 | 55.05 ▲3.15 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.87 | 92.33 ▼6.87 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 40.49 ▲7.36 |
Manage Adverts /wp-admin/admin.php?page=adrotate | 4.10 | 42.81 |
Manage Schedules /wp-admin/admin.php?page=adrotate-schedules | 4.09 | 40.50 |
Support /wp-admin/admin.php?page=adrotate-support | 4.10 | 39.40 |
Manage Groups /wp-admin/admin.php?page=adrotate-groups | 4.10 | 46.65 |
Statistics /wp-admin/admin.php?page=adrotate-statistics | 4.07 | 40.75 |
Get AdRotate Pro /wp-admin/admin.php?page=adrotate-pro | 4.09 | 35.34 |
Settings /wp-admin/admin.php?page=adrotate-settings | 4.09 | 44.09 |
Manage Media /wp-admin/admin.php?page=adrotate-media | 4.09 | 37.67 |
Server storage [IO: ▲2.59MB] [DB: ▲0.02MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- There were 2 files (0.00KB) illegally modified outside of "wp-content/plugins/adrotate/" and "wp-content/uploads/"
- (new file) wp-content/banners/.empty
- (new file) wp-content/reports/.empty
Filesystem: 91 new files
Database: 7 new tables, 19 new options
New tables |
---|
wp_adrotate_groups |
wp_adrotate_schedule |
wp_adrotate_stats_archive |
wp_adrotate_linkmeta |
wp_adrotate_stats |
wp_adrotate_tracker |
wp_adrotate |
New WordPress options |
---|
widget_adrotate_widgets |
adrotate_crawlers |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
adrotate_hide_getpro |
adrotate_geo_required |
adrotate_notifications |
adrotate_version |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for AdRotate Banner Manager - The only ad manager you'll need
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲155 | 14.36 ▼0.01 | 2.20 ▲0.13 | 42.94 ▼0.82 |
Dashboard /wp-admin | 2,299 ▲125 | 5.71 ▲0.13 | 90.69 ▲0.89 | 63.32 ▲22.22 |
Posts /wp-admin/edit.php | 2,216 ▲116 | 2.48 ▲0.47 | 45.91 ▲11.02 | 34.29 ▼3.18 |
Add New Post /wp-admin/post-new.php | 6,419 ▲4,875 | 27.80 ▲2.67 | 860.36 ▲243.35 | 173.35 ▲84.04 |
Media Library /wp-admin/upload.php | 1,513 ▲113 | 4.26 ▲0.10 | 109.05 ▲10.05 | 67.55 ▲27.23 |
Manage Adverts /wp-admin/admin.php?page=adrotate | 1,295 | 2.40 | 41.73 | 41.59 |
Manage Schedules /wp-admin/admin.php?page=adrotate-schedules | 1,258 | 2.47 | 35.76 | 37.35 |
Support /wp-admin/admin.php?page=adrotate-support | 1,211 | 2.41 | 33.26 | 56.95 |
Manage Groups /wp-admin/admin.php?page=adrotate-groups | 1,181 | 2.36 | 34.93 | 35.46 |
Statistics /wp-admin/admin.php?page=adrotate-statistics | 1,263 | 2.29 | 35.55 | 54.61 |
Get AdRotate Pro /wp-admin/admin.php?page=adrotate-pro | 1,214 | 2.27 | 33.26 | 63.09 |
Settings /wp-admin/admin.php?page=adrotate-settings | 1,281 | 2.28 | 33.54 | 36.53 |
Manage Media /wp-admin/admin.php?page=adrotate-media | 1,176 | 2.40 | 33.52 | 42.29 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_adrotate_widgets
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 32× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/adrotate/dashboard/publisher/adverts-generator.php:13
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/adrotate/dashboard/publisher/adverts-edit.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/adrotate/dashboard/settings/statistics.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/adrotate/dashboard/publisher/adverts-disabled.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/adrotate/dashboard/publisher/adverts-error.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/adrotate/dashboard/publisher/groups-main.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/adrotate/dashboard/settings/misc.php:13
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/adrotate/dashboard/publisher/groups-edit.php:14
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/adrotate/dashboard/publisher/adverts-generator.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adrotate/adrotate-block.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
adrotate/adrotate.php Passed 13 tests
"AdRotate Banner Manager - The only ad manager you'll need" version 5.12.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
Monetize your website with adverts while keeping things simple. Start making money today!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected20,749 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 8,375 | 18,197 | 14,845 |
PHP | 31 | 996 | 996 | 5,555 |
JavaScript | 11 | 24 | 81 | 261 |
CSS | 1 | 14 | 10 | 88 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 107 | |
▷ Named functions | 107 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
21 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-services.png | 8.33KB | 3.62KB | ▼ 56.54% |
images/icon-contact.png | 4.12KB | 2.23KB | ▼ 45.83% |
images/pro/demo-stats.png | 7.40KB | 3.13KB | ▼ 57.73% |
images/date-arrow.png | 1.69KB | 0.55KB | ▼ 67.72% |
images/pro/demo-adblock.png | 2.18KB | 1.16KB | ▼ 46.93% |