Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼295.37ms] Passed 4 tests
This is a short check of server-side resources used by WBP Ad Filter Injector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 55.56 ▲1.43 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.30 ▼1.79 |
Posts /wp-admin/edit.php | 3.69 ▲0.04 | 37.46 ▼1.18 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 95.46 ▼1,176.50 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 24.44 ▼2.02 |
WBP Ad Filter Injector /wp-admin/plugins.php?page=wbpAdFilterPluginMenuPageDisplay | 3.40 | 22.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 4 new options
New WordPress options |
---|
wbp-ad-filter-settings-home |
wbp-ad-filter-settings-word-count |
wbp-ad-filter-settings-shortcode |
wbp-ad-filter-settings-target-content |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WBP Ad Filter Injector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,772 ▲18 | 15.87 ▲0.15 | 6.38 ▼0.45 | 2.39 ▼0.58 |
Dashboard /wp-admin | 2,899 ▲38 | 6.13 ▼0.00 | 119.31 ▼21.08 | 161.79 ▼3.30 |
Posts /wp-admin/edit.php | 2,695 ▲4 | 3.23 ▲0.00 | 62.93 ▼2.38 | 146.21 ▲2.44 |
Add New Post /wp-admin/post-new.php | 1,673 ▼44 | 18.25 ▼2.44 | 400.99 ▼44.29 | 160.11 ▼0.45 |
Media Library /wp-admin/upload.php | 1,702 ▲1 | 5.53 ▲0.04 | 136.29 ▼9.34 | 188.87 ▲8.97 |
WBP Ad Filter Injector /wp-admin/plugins.php?page=wbpAdFilterPluginMenuPageDisplay | 1,116 | 2.39 | 54.73 | 137.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ad-filter-injector/wbp-ad-filter.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/ad-filter-injector/uninstall.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: filter, injector, ad rotator, shortcode, ads...
ad-filter-injector/wbp-ad-filter.php 92% from 13 tests
Analyzing the main PHP file in "WBP Ad Filter Injector" version 1.0.1
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ad-filter-injector.php" instead of "wbp-ad-filter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin237 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 97 | 33 | 234 |
CSS | 1 | 1 | 6 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 15 | |
▷ Named functions | 15 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wbp-logo.png | 1.12KB | 1.04KB | ▼ 6.47% |
images/injector-icon.png | 7.50KB | 3.45KB | ▼ 54.02% |