Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼296.49ms] Passed 4 tests
Server-side resources used by Ad Blocking Advisor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.13 | 55.23 ▲5.22 |
Dashboard /wp-admin | 3.51 ▲0.10 | 32.98 ▼3.54 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 39.61 ▲0.75 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.00 | 95.94 ▼1,185.09 |
Media Library /wp-admin/upload.php | 3.38 ▲0.09 | 25.06 ▲1.94 |
Ad Blocking Advisor Settings /wp-admin/options-general.php?page=aba-settings | 3.35 | 23.47 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options |
---|
aba_show_banner_loggedin |
aba_enabled |
aba_version |
aba_font_size |
aba_notice_text |
aba_font_color |
aba_cookie_allow |
aba_cookie_timeout |
aba_background_color |
aba_show_banner_dismiss_icon |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Ad Blocking Advisor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,955 ▲200 | 16.28 ▲0.49 | 10.69 ▲4.72 | 2.31 ▲0.23 |
Dashboard /wp-admin | 2,895 ▲34 | 6.13 ▼0.00 | 116.77 ▼21.30 | 156.80 ▼8.30 |
Posts /wp-admin/edit.php | 2,695 ▲1 | 3.24 ▲0.01 | 64.60 ▲0.23 | 140.78 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,673 ▼38 | 17.86 ▼3.71 | 401.51 ▼31.14 | 154.90 ▼1.66 |
Media Library /wp-admin/upload.php | 1,702 ▲4 | 5.54 ▲0.05 | 142.27 ▼3.69 | 182.68 ▼9.45 |
Ad Blocking Advisor Settings /wp-admin/options-general.php?page=aba-settings | 1,305 | 2.39 | 54.50 | 138.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options were found after uninstall: 1 option
- aba_version
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 no errors were found, this is by no means 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ad-blocking-advisor/ad-blocking-advisor.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ad-blocking-advisor/ad-blocking-advisor.php 92% from 13 tests
The main PHP script in "Ad Blocking Advisor" version 2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected445 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 101 | 39 | 357 |
CSS | 2 | 6 | 5 | 63 |
JavaScript | 2 | 2 | 1 | 25 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 |
images/OBrienLabs-Logo-h75px.png | 12.21KB | 4.67KB | ▼ 61.79% |