Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.07ms] 75% from 4 tests
Analyzing server-side resources used by Admiral Adblock Analytics
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 593.79ms on /wp-admin/options-general.php?page=admiral-adblock-analytics)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.43 ▼6.51 |
Dashboard /wp-admin | 3.40 ▲0.05 | 51.79 ▼9.50 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.72 ▲4.28 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.93 ▼4.53 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 39.27 ▲5.88 |
Admiral /wp-admin/options-general.php?page=admiral-adblock-analytics | 3.31 | 593.79 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Admiral Adblock Analytics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.72 ▲0.50 | 1.71 ▼0.00 | 38.30 ▼4.85 |
Dashboard /wp-admin | 2,202 ▲25 | 5.55 ▲0.00 | 82.29 ▼19.93 | 38.55 ▼3.63 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.97 ▼0.06 | 32.94 ▼2.31 | 39.28 ▲8.65 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 23.16 ▲4.95 | 647.04 ▼28.60 | 54.94 ▼13.01 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.21 ▲0.01 | 101.43 ▼0.44 | 43.53 ▼0.82 |
Admiral /wp-admin/options-general.php?page=admiral-adblock-analytics | 889 | 1.97 | 22.94 | 24.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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 (13 tag instead of maximum 10)
admiral-adblock-suite/index.php 92% from 13 tests
"Admiral Adblock Analytics" version 1.9.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admiral-adblock-suite.php" instead of "index.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
These items require your attention
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/admiral-adblock-suite/caroots.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 87 | 130 | 778 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 20 | 100.00% |
▷ Public methods | 12 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 40.00% |
Functions | 17 | |
▷ Named functions | 9 | 52.94% |
▷ Anonymous functions | 8 | 47.06% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 1.24MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 10.09KB | 4.43KB | ▼ 56.05% |
assets/images/admiral-logo.png | 15.33KB | 11.86KB | ▼ 22.67% |
assets/icon-128x128.png | 6.05KB | 2.76KB | ▼ 54.45% |
assets/screenshot-1.png | 44.45KB | 13.93KB | ▼ 68.66% |
assets/screenshot-2.png | 286.24KB | 122.77KB | ▼ 57.11% |