Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼308.52ms] Passed 4 tests
This is a short check of server-side resources used by deAdblocker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.04 | 57.87 ▼2.93 |
Dashboard /wp-admin | 3.44 ▲0.04 | 36.49 ▼52.79 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 42.72 ▲4.64 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 94.31 ▼1,175.49 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 26.28 ▼2.88 |
deAdblocker /wp-admin/options-general.php?page=deadblocker | 3.34 | 26.05 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 1 new option
New WordPress options |
---|
deadblocker_options |
Browser metrics Passed 4 tests
A check of browser resources used by deAdblocker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,882 ▲128 | 16.28 ▲0.23 | 10.88 ▲4.87 | 2.60 ▲0.17 |
Dashboard /wp-admin | 2,897 ▲36 | 6.11 ▼0.15 | 117.04 ▼23.42 | 157.08 ▼14.08 |
Posts /wp-admin/edit.php | 2,693 ▲5 | 3.24 ▼0.12 | 66.82 ▼34.91 | 139.93 ▼34.12 |
Add New Post /wp-admin/post-new.php | 1,669 ▼21 | 20.47 ▼1.14 | 453.33 ▼15.88 | 165.66 ▲4.50 |
Media Library /wp-admin/upload.php | 1,703 ▲9 | 5.52 ▲0.04 | 148.97 ▲9.80 | 188.41 ▼19.93 |
deAdblocker /wp-admin/options-general.php?page=deadblocker | 2,487 | 8.56 | 188.25 | 218.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Abstract_Deco_Deadblocker' not found in wp-content/plugins/deadblocker/includes/class-admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'Abstract_Deco_Deadblocker' not found in wp-content/plugins/deadblocker/includes/class-front.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=deadblocker
- > Network (severe)
wp-content/plugins/deadblocker/assets/css/deadblocker-admin.css?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: prevent adblock, adblock, adblock detect, disable adblock
deadblocker/deadblocker.php Passed 13 tests
The main PHP script in "deAdblocker" version 1.0 is automatically included on every request by WordPress
118 characters long description:
deAdblocker detects AdBlock users and ask them to whitelist your site. Behavior and messages are configurable. Simple.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,141 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 138 | 139 | 491 |
JavaScript | 7 | 69 | 31 | 430 |
Sass | 6 | 32 | 0 | 218 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 8 | 20.51% |
▷ Public methods | 37 | 94.87% |
▷ Protected methods | 1 | 2.56% |
▷ Private methods | 1 | 2.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 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
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/tooltip2.png | 14.07KB | 14.79KB | 0.00% |
assets/img/tooltip1.png | 13.19KB | 13.64KB | 0.00% |