Benchmarks
Plugin footprint 83% 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.13MB] [CPU: ▼6.45ms] Passed 4 tests
An overview of server-side resources used by Block AdBlock
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.01 ▼3.27 |
Dashboard /wp-admin | 3.44 ▲0.10 | 47.62 ▼11.26 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.02 ▼0.00 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 88.73 ▼8.76 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.76 ▼2.50 |
Server storage [IO: ▲0.09MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
admiral_embed |
admiral_property_promise_property_id |
widget_recent-comments |
admiral_property_id |
widget_recent-posts |
can_compress_scripts |
admiral_property_promise_id |
admiral_embed_expiration |
... |
Browser metrics Passed 4 tests
Block AdBlock: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲125 | 13.53 ▼0.82 | 8.66 ▲7.06 | 45.29 ▲6.56 |
Dashboard /wp-admin | 2,210 ▲32 | 5.55 ▼0.17 | 83.84 ▼26.52 | 89.26 ▲48.53 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.98 ▼0.05 | 35.56 ▼3.85 | 36.78 ▲3.96 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 22.99 ▼0.24 | 709.54 ▲78.20 | 67.39 ▲2.00 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.09 ▼0.18 | 101.07 ▼2.14 | 69.08 ▲25.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 11 options
- admiral_property_id
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- admiral_embed_expiration
- admiral_property_promise_id
- widget_recent-posts
- admiral_embed
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/kill-adblock/init.php
- > /wp-content/plugins/kill-adblock/admin-option.php
- > /wp-content/plugins/kill-adblock/kill-adblock.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/kill-adblock/footer-message.php on line 18
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: adblock detector, block adblock, ads block, anti adblocker, detect adblock...
kill-adblock/kill-adblock.php Passed 13 tests
The principal PHP file in "Block AdBlock" v. 1.4 is loaded by WordPress automatically on each request
13 characters long description:
Block AdBlock
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
These items require your attention
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/kill-adblock/vendor/caroots.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 88 | 118 | 899 |
PO File | 2 | 40 | 49 | 108 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 21 | |
▷ Static methods | 21 | 100.00% |
▷ Public methods | 14 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 33.33% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.44KB | 0.94KB | ▼ 34.75% |
images/logo.png | 8.76KB | 4.40KB | ▼ 49.74% |
images/logo2.png | 8.76KB | 4.40KB | ▼ 49.74% |