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.06MB] [CPU: ▲1.25ms] Passed 4 tests
Server-side resources used by Detect AdBlock
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.67 ▲1.02 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.71 ▼2.56 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 48.86 ▲5.08 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 94.32 ▲7.95 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.29 ▲1.44 |
Detect AdBlock /wp-admin/options-general.php?page=oba_detect_adblock_settings | 3.25 | 33.07 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
adab_cookie_name |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Detect AdBlock
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.34 ▼1.04 | 1.59 ▼0.37 | 40.92 ▼3.55 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.14 | 110.45 ▼15.00 | 40.96 ▼1.75 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 39.31 ▲3.41 | 35.41 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,550 ▲29 | 18.27 ▼4.88 | 598.67 ▼87.70 | 64.98 ▲7.73 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.21 ▼0.04 | 94.56 ▼2.01 | 40.93 ▼1.98 |
Detect AdBlock /wp-admin/options-general.php?page=oba_detect_adblock_settings | 865 | 2.03 | 26.53 | 23.61 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- adab_cookie_name
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/detect-adblock/detect-adblock.php
- > /wp-content/plugins/detect-adblock/settings.php
- > /wp-content/plugins/detect-adblock/index.php
- > /wp-content/plugins/detect-adblock/uninstall.php
- > /wp-content/plugins/detect-adblock/js/index.php
- > /wp-content/plugins/detect-adblock/banners/index.php
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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
detect-adblock/detect-adblock.php 92% from 13 tests
The principal PHP file in "Detect AdBlock" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin286 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 82 | 26 | 285 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banners/bluehost.png | 9.86KB | 4.35KB | ▼ 55.86% |