Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.81ms] Passed 4 tests
A check of server-side resources used by AdBlock Detector
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.25 ▼6.02 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.12 ▼1.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.27 ▲2.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.81 ▼10.13 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.56 ▲4.44 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ap_adblock_detector_log |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
adblockmon_settings |
Browser metrics Passed 4 tests
AdBlock Detector: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲86 | 13.25 ▼0.99 | 5.03 ▲2.91 | 41.06 ▼4.78 |
Dashboard /wp-admin | 2,215 ▲27 | 5.77 ▼0.06 | 102.90 ▼8.80 | 39.05 ▼4.95 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.00 ▲0.00 | 40.31 ▲4.41 | 35.53 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,543 ▲7 | 23.00 ▼0.20 | 598.22 ▼71.81 | 58.45 ▼2.08 |
Media Library /wp-admin/upload.php | 1,403 ▲21 | 4.17 ▼0.12 | 96.71 ▼4.88 | 42.13 ▼6.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_ap_adblock_detector_log
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- adblockmon_settings
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/adblock-detector/admin/partials/ap-adblock-detector-admin-display.php
- > /wp-content/plugins/adblock-detector/public/partials/ap-adblock-detector-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of 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
The main file in "AdBlock Detector" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("adblock-detector.php" instead of "ap-adblock-detector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,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
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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-icons_2e83ff_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
admin/css/jquery-ui-themes/smoothness/images/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
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-icons_454545_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |