89% admiral-adblock-suite

Code Review | Admiral Adblock Analytics

WordPress plugin Admiral Adblock Analytics scored 89% from 54 tests.

About plugin

  • Plugin page: admiral-adblock-s...
  • Plugin version: 1.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.9.2
  • First release: Jun 4, 2016
  • Latest release: Aug 19, 2021
  • Number of updates: 32
  • Update frequency: every 61.4 days
  • Top authors: getadmiral (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

200+ active / 9,420 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.28 ▲2.26
Dashboard /wp-admin3.43 ▲0.0234.46 ▼0.43
Posts /wp-admin/edit.php3.65 ▲0.0137.25 ▲1.42
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.73 ▼1,198.83
Media Library /wp-admin/upload.php3.31 ▲0.0123.75 ▼4.73
Admiral /wp-admin/options-general.php?page=admiral-adblock-analytics3.2721.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

Browser metrics Passed 4 tests

Admiral Adblock Analytics: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,831 ▲8715.20 ▼0.397.31 ▲1.533.16 ▲0.86
Dashboard /wp-admin2,897 ▲396.16 ▼0.04122.22 ▼8.29157.56 ▼2.86
Posts /wp-admin/edit.php2,693 ▲23.24 ▲0.0061.09 ▼2.65136.25 ▼9.14
Add New Post /wp-admin/post-new.php1,671 ▼4618.23 ▼2.90409.78 ▼41.36160.63 ▼0.87
Media Library /wp-admin/upload.php1,706 ▲55.53 ▲0.03134.51 ▼7.90183.59 ▼5.47
Admiral /wp-admin/options-general.php?page=admiral-adblock-analytics1,0742.5157.05119.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


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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.32
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods25100.00%
▷ Public methods1664.00%
▷ Protected methods00.00%
▷ Private methods936.00%
▷ Named functions333.33%
▷ Anonymous functions666.67%
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.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
FileSize - originalSize - compressedSavings
assets/images/admiral-logo.png15.33KB11.86KB▼ 22.67%