Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.59ms] Passed 4 tests
This is a short check of server-side resources used by AdRotate Switch
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.91 ▼7.18 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.24 ▲0.73 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.78 ▼1.89 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 95.06 ▲5.88 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 38.02 ▲1.99 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/adrotate-switch/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for AdRotate Switch
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 13.25 ▼1.13 | 1.76 ▲0.12 | 43.22 ▲0.57 |
Dashboard /wp-admin | 2,222 ▲18 | 4.89 ▼0.00 | 97.78 ▼16.12 | 77.13 ▲37.33 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▼0.00 | 34.45 ▼1.96 | 36.64 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,543 ▼2 | 23.33 ▲0.35 | 741.90 ▲65.83 | 56.08 ▲3.15 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.13 ▼0.09 | 98.76 ▼5.29 | 71.81 ▲25.97 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/adrotate-switch/adrotate-switch.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
adrotate-switch/adrotate-switch.php Passed 13 tests
The main file in "AdRotate Switch" v. 1.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
113 characters long description:
Easily migrate your data from compatible advertising plugins to AdRotate Banner Manager or AdRotate Professional.
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
Good job! No executable or dangerous file extensions detected1,474 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 320 | 217 | 1,450 |
CSS | 1 | 6 | 3 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-menu.png | 4.55KB | 1.09KB | ▼ 76.07% |
images/logo-60x60.png | 8.00KB | 2.55KB | ▼ 68.12% |
images/buttons/2.png | 7.27KB | 3.36KB | ▼ 53.83% |
images/buttons/3.png | 4.08KB | 2.03KB | ▼ 50.28% |
images/buttons/1.png | 8.33KB | 3.44KB | ▼ 58.73% |