Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/adrotate/adrotate.php+66
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.86MB] [CPU: ▼286.44ms] Passed 4 tests
Analyzing server-side resources used by AdRotate - Ad manager & AdSense Ads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.41 ▲0.89 | 59.38 ▲9.75 |
Dashboard /wp-admin | 4.26 ▲0.86 | 39.99 ▲7.62 |
Posts /wp-admin/edit.php | 4.49 ▲0.85 | 43.89 ▲7.66 |
Add New Post /wp-admin/post-new.php | 7.80 ▲0.83 | 98.72 ▼1,163.56 |
Media Library /wp-admin/upload.php | 4.21 ▲0.92 | 27.08 ▲2.51 |
Manage Media /wp-admin/admin.php?page=adrotate-media | 4.17 | 27.17 |
Statistics /wp-admin/admin.php?page=adrotate-statistics | 4.15 | 31.32 |
Manage Schedules /wp-admin/admin.php?page=adrotate-schedules | 4.17 | 28.81 |
Settings /wp-admin/admin.php?page=adrotate-settings | 4.17 | 26.62 |
Get AdRotate Pro /wp-admin/admin.php?page=adrotate-pro | 4.16 | 27.90 |
Support /wp-admin/admin.php?page=adrotate-support | 4.15 | 28.90 |
Manage Groups /wp-admin/admin.php?page=adrotate-groups | 4.17 | 34.65 |
Manage Adverts /wp-admin/admin.php?page=adrotate | 4.17 | 30.35 |
Server storage [IO: ▲2.30MB] [DB: ▲0.02MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- You have illegally modified 2 files (0.00KB) outside of "wp-content/plugins/adrotate/" and "wp-content/uploads/"
- (new file) wp-content/reports/.empty
- (new file) wp-content/banners/.empty
Filesystem: 86 new files
Database: 7 new tables, 13 new options
New tables |
---|
wp_adrotate_schedule |
wp_adrotate |
wp_adrotate_groups |
wp_adrotate_tracker |
wp_adrotate_stats |
wp_adrotate_stats_archive |
wp_adrotate_linkmeta |
New WordPress options |
---|
adrotate_version |
adrotate_dynamic_required |
adrotate_hide_getpro |
adrotate_advert_status |
widget_adrotate_widgets |
adrotate_hide_review |
adrotate_config |
adrotate_geo_required |
adrotate_hide_birthday |
adrotate_db_version |
... |
Browser metrics Passed 4 tests
AdRotate - Ad manager & AdSense Ads: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,949 ▲195 | 16.05 ▲0.10 | 7.26 ▲0.61 | 2.33 ▼0.40 |
Dashboard /wp-admin | 3,034 ▲176 | 6.27 ▲0.09 | 124.43 ▼9.43 | 176.48 ▲13.00 |
Posts /wp-admin/edit.php | 2,805 ▲120 | 3.59 ▲0.34 | 71.32 ▲6.13 | 142.68 ▼10.31 |
Add New Post /wp-admin/post-new.php | 1,720 ▼32 | 16.43 ▼4.48 | 419.93 ▼42.97 | 186.81 ▲28.58 |
Media Library /wp-admin/upload.php | 1,847 ▲155 | 5.67 ▲0.12 | 136.67 ▼6.75 | 216.90 ▲32.32 |
Manage Media /wp-admin/admin.php?page=adrotate-media | 1,564 | 3.22 | 72.34 | 187.84 |
Statistics /wp-admin/admin.php?page=adrotate-statistics | 1,721 | 3.22 | 69.25 | 218.68 |
Manage Schedules /wp-admin/admin.php?page=adrotate-schedules | 1,741 | 3.23 | 65.29 | 181.52 |
Settings /wp-admin/admin.php?page=adrotate-settings | 1,747 | 3.59 | 72.98 | 158.23 |
Get AdRotate Pro /wp-admin/admin.php?page=adrotate-pro | 1,666 | 3.18 | 67.58 | 184.76 |
Support /wp-admin/admin.php?page=adrotate-support | 1,564 | 3.21 | 68.04 | 193.43 |
Manage Groups /wp-admin/admin.php?page=adrotate-groups | 1,580 | 3.51 | 68.57 | 164.96 |
Manage Adverts /wp-admin/admin.php?page=adrotate | 1,742 | 3.50 | 70.09 | 163.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/adrotate/adrotate-setup.php+227
Undefined variable: pfunction
- Zombie tables detected upon uninstall: 7 tables
- wp_adrotate
- wp_adrotate_schedule
- wp_adrotate_groups
- wp_adrotate_tracker
- wp_adrotate_stats
- wp_adrotate_linkmeta
- wp_adrotate_stats_archive
- This plugin does not fully uninstall, leaving 13 options in the database
- adrotate_version
- adrotate_notifications
- adrotate_config
- adrotate_db_version
- adrotate_crawlers
- widget_adrotate_widgets
- adrotate_geo_requests
- adrotate_geo_required
- adrotate_advert_status
- adrotate_hide_getpro
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 32× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/adrotate/dashboard/publisher/adverts-main.php:12
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/adrotate/dashboard/publisher/groups-edit.php on line 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 Notice
Undefined variable: ad_edit_id in wp-content/plugins/adrotate/dashboard/publisher/adverts-generator.php on line 12
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/adrotate/dashboard/publisher/adverts-edit.php on line 13
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/adrotate/dashboard/support.php on line 13
- > 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 Notice
Undefined variable: wpdb in wp-content/plugins/adrotate/dashboard/publisher/statistics-advert.php on line 12
- > PHP Notice
Undefined variable: group_edit_id in wp-content/plugins/adrotate/dashboard/publisher/groups-edit.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/adrotate/dashboard/support.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (17 tag instead of maximum 10)
adrotate/adrotate.php Passed 13 tests
"AdRotate - Ad manager & AdSense Ads" version 5.8.22's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin17,715 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 6 | 7,376 | 16,361 | 11,948 |
PHP | 30 | 975 | 983 | 5,519 |
JavaScript | 10 | 12 | 70 | 160 |
CSS | 1 | 14 | 10 | 88 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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 | 104 | |
▷ Named functions | 104 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
19 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cross.png | 0.39KB | 0.28KB | ▼ 28.36% |
images/pro/demo-mobile.png | 1.46KB | 0.79KB | ▼ 45.93% |
images/birthday.png | 4.24KB | 2.05KB | ▼ 51.49% |
images/logo-60x60.png | 5.52KB | 2.89KB | ▼ 47.58% |
images/pro/demo-support.png | 4.58KB | 2.40KB | ▼ 47.70% |