Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼300.64ms] Passed 4 tests
This is a short check of server-side resources used by Admiral Adblock Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 54.28 ▲2.26 |
Dashboard /wp-admin | 3.43 ▲0.02 | 34.46 ▼0.43 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.25 ▲1.42 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 94.73 ▼1,198.83 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 23.75 ▼4.73 |
Admiral /wp-admin/options-general.php?page=admiral-adblock-analytics | 3.27 | 21.90 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 5 new options
New WordPress options |
---|
admiral_embed |
admiral_property_id |
admiral_embed_expiration2 |
admiral_property_promise_property_id |
admiral_property_promise_id |
Browser metrics Passed 4 tests
Admiral Adblock Analytics: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,831 ▲87 | 15.20 ▼0.39 | 7.31 ▲1.53 | 3.16 ▲0.86 |
Dashboard /wp-admin | 2,897 ▲39 | 6.16 ▼0.04 | 122.22 ▼8.29 | 157.56 ▼2.86 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▲0.00 | 61.09 ▼2.65 | 136.25 ▼9.14 |
Add New Post /wp-admin/post-new.php | 1,671 ▼46 | 18.23 ▼2.90 | 409.78 ▼41.36 | 160.63 ▼0.87 |
Media Library /wp-admin/upload.php | 1,706 ▲5 | 5.53 ▲0.03 | 134.51 ▼7.90 | 183.59 ▼5.47 |
Admiral /wp-admin/options-general.php?page=admiral-adblock-analytics | 1,074 | 2.51 | 57.05 | 119.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 5 options in the database
- admiral_embed_expiration2
- admiral_property_promise_id
- admiral_property_id
- admiral_embed
- admiral_property_promise_property_id
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
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
admiral-adblock-suite/index.php 92% from 13 tests
"Admiral Adblock Analytics" version 1.9.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected461 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 74 | 461 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.79 |
▷ 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 | 25 | |
▷ Static methods | 25 | 100.00% |
▷ Public methods | 16 | 64.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 36.00% |
Functions | 9 | |
▷ Named functions | 3 | 33.33% |
▷ Anonymous functions | 6 | 66.67% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admiral-logo.png | 15.33KB | 11.86KB | ▼ 22.67% |