Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼294.54ms] Passed 4 tests
Server-side resources used by adBuddy+ (AdBlocker Detection) by NetfunkDesign
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.08 | 53.64 ▲2.64 |
Dashboard /wp-admin | 3.46 ▲0.05 | 32.29 ▼4.77 |
Posts /wp-admin/edit.php | 3.70 ▲0.05 | 36.58 ▼0.28 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 96.94 ▼1,163.74 |
Media Library /wp-admin/upload.php | 3.35 ▲0.04 | 23.14 ▼9.38 |
adBuddy+ /wp-admin/options-general.php?page=adbuddy | 3.32 | 23.27 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
adbuddy_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for adBuddy+ (AdBlocker Detection) by NetfunkDesign
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲72 | 16.19 ▲0.53 | 7.39 ▲1.77 | 2.38 ▲0.08 |
Dashboard /wp-admin | 2,897 ▲39 | 6.03 ▼0.07 | 120.38 ▼15.84 | 160.31 ▼0.40 |
Posts /wp-admin/edit.php | 2,693 ▲5 | 3.24 ▲0.01 | 66.04 ▲2.82 | 154.00 ▲9.89 |
Add New Post /wp-admin/post-new.php | 1,664 ▼88 | 16.93 ▼3.84 | 413.83 ▼33.39 | 152.78 ▼4.84 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.50 ▼0.04 | 137.83 ▼17.32 | 189.44 ▼2.94 |
adBuddy+ /wp-admin/options-general.php?page=adbuddy | 1,091 | 2.76 | 65.74 | 123.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- adbuddy_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/adbuddy-adblocker-detection/netfunk-adbuddy.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Options Panel.), #2 (Pop-up Notice.)
adbuddy-adblocker-detection/netfunk-adbuddy.php 85% from 13 tests
The main PHP script in "adBuddy+ (AdBlocker Detection) by NetfunkDesign" version 1.1.3 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 371 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("adbuddy-adblocker-detection.php" instead of "netfunk-adbuddy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected268 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 54 | 37 | 172 |
CSS | 1 | 9 | 1 | 84 |
JavaScript | 1 | 7 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/jslogo.png | 1.83KB | 1.52KB | ▼ 17.04% |
screenshot-2.png | 89.60KB | 41.63KB | ▼ 53.53% |
img/stop-adblock.png | 60.51KB | 18.98KB | ▼ 68.64% |
screenshot-1.png | 72.74KB | 31.90KB | ▼ 56.14% |
img/close.png | 1.02KB | 0.18KB | ▼ 82.53% |