Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼293.93ms] Passed 4 tests
A check of server-side resources used by AdRotate Switch
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.11 | 64.62 ▲5.83 |
Dashboard /wp-admin | 3.54 ▲0.13 | 37.74 ▼10.30 |
Posts /wp-admin/edit.php | 3.77 ▲0.13 | 42.58 ▼1.62 |
Add New Post /wp-admin/post-new.php | 7.02 ▲0.04 | 99.16 ▼1,168.90 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 30.33 ▲5.09 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for AdRotate Switch
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,780 ▲58 | 16.13 ▲0.56 | 5.87 ▼0.42 | 2.32 ▼0.06 |
Dashboard /wp-admin | 2,908 ▲50 | 6.22 ▲0.06 | 118.86 ▼18.50 | 184.60 ▲22.59 |
Posts /wp-admin/edit.php | 2,705 ▲14 | 3.12 ▲0.07 | 63.94 ▼6.48 | 138.87 ▼7.52 |
Add New Post /wp-admin/post-new.php | 1,723 ▲62 | 20.68 ▲4.17 | 426.34 ▼1.70 | 160.34 ▼4.53 |
Media Library /wp-admin/upload.php | 1,715 ▲17 | 5.55 ▲0.01 | 127.62 ▼15.25 | 203.63 ▲17.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > 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 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 16 tag instead of maximum 10
adrotate-switch/adrotate-switch.php Passed 13 tests
"AdRotate Switch" version 1.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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/buttons/3.png | 4.08KB | 2.03KB | ▼ 50.28% |
images/buttons/1.png | 8.33KB | 3.44KB | ▼ 58.73% |
images/buttons/2.png | 7.27KB | 3.36KB | ▼ 53.83% |
images/logo-60x60.png | 8.00KB | 2.55KB | ▼ 68.12% |
images/icon-menu.png | 4.55KB | 1.09KB | ▼ 76.07% |