Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼296.23ms] Passed 4 tests
Server-side resources used by AdBlock Detector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 68.42 ▲13.72 |
Dashboard /wp-admin | 3.52 ▲0.12 | 64.79 ▲30.90 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 39.36 ▼40.96 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 132.06 ▼1,151.42 |
Media Library /wp-admin/upload.php | 3.40 ▲0.11 | 25.40 ▼6.26 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 45 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_ap_adblock_detector_log |
New WordPress options |
---|
adblockmon_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AdBlock Detector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲41 | 15.53 ▼0.14 | 7.64 ▲1.62 | 2.08 ▼0.23 |
Dashboard /wp-admin | 2,907 ▲46 | 6.12 ▼0.08 | 119.10 ▼11.61 | 161.70 ▼6.45 |
Posts /wp-admin/edit.php | 2,706 ▲15 | 3.24 ▲0.01 | 64.67 ▼0.36 | 146.24 ▼6.74 |
Add New Post /wp-admin/post-new.php | 1,721 ▲60 | 20.76 ▲4.39 | 452.41 ▲19.96 | 159.56 ▼7.58 |
Media Library /wp-admin/upload.php | 1,716 ▲18 | 5.47 ▼0.08 | 139.40 ▼2.31 | 192.65 ▲7.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_ap_adblock_detector_log
- Zombie WordPress options were found after uninstall: 1 option
- adblockmon_settings
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)
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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/adblock-detector/public/partials/ap-adblock-detector-public-display.php
- > /wp-content/plugins/adblock-detector/admin/partials/ap-adblock-detector-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (The plugin dashboard that allows you to see some quick stats and use some quick filtering.) image not found
adblock-detector/ap-adblock-detector.php 92% from 13 tests
"AdBlock Detector" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("adblock-detector.php" instead of "ap-adblock-detector.php")
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
Everything looks great! No dangerous files found in this plugin4,836 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 409 | 716 | 2,668 |
CSS | 6 | 70 | 91 | 1,727 |
PHP | 12 | 176 | 550 | 441 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/jquery-ui-themes/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
admin/css/jquery-ui-themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.12KB | ▼ 67.68% |
admin/css/jquery-ui-themes/smoothness/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |
admin/css/jquery-ui-themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.32KB | 0.16KB | ▼ 50.46% |
admin/css/jquery-ui-themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png | 0.38KB | 0.15KB | ▼ 61.54% |