Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲2.93MB] [CPU: ▼302.68ms] Passed 4 tests
An overview of server-side resources used by WP Relevant Ads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.20 ▲2.68 | 81.78 ▲29.42 |
Dashboard /wp-admin | 6.78 ▲3.37 | 42.94 ▲5.06 |
Posts /wp-admin/edit.php | 6.78 ▲3.14 | 44.09 ▲3.85 |
Add New Post /wp-admin/post-new.php | 9.49 ▲2.52 | 96.03 ▼1,234.67 |
Media Library /wp-admin/upload.php | 6.78 ▲3.48 | 40.28 ▲15.03 |
Server storage [IO: ▲2.25MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 256 new files
Database: no new tables, 6 new options
New WordPress options |
---|
fs_api_cache |
fs_debug_mode |
wp-relevant-ad-cat_children |
fs_active_plugins |
widget_wp_relevant_ads_ad |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Relevant Ads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,993 ▲239 | 16.14 ▲0.48 | 9.25 ▲2.72 | 2.84 ▲0.44 |
Dashboard /wp-admin | 2,958 ▲97 | 6.24 ▲0.09 | 117.62 ▼15.05 | 165.14 ▲6.80 |
Posts /wp-admin/edit.php | 2,758 ▲73 | 3.26 ▲0.02 | 64.12 ▲1.96 | 160.94 ▲20.66 |
Add New Post /wp-admin/post-new.php | 1,711 ▼0 | 17.22 ▼3.95 | 396.29 ▼70.59 | 159.81 ▼0.61 |
Media Library /wp-admin/upload.php | 1,862 ▲164 | 5.81 ▲0.34 | 139.88 ▼2.19 | 189.71 ▲2.61 |
Uninstaller [IO: ▲0.12MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- fs_debug_mode
- fs_api_cache
- fs_accounts
- fs_active_plugins
- widget_wp_relevant_ads_ad
- wp-relevant-ad-cat_children
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-relevant-ads/includes/bc-framework/includes/wp-scb-framework/Widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/wp-relevant-ads/includes/bc-framework/includes/wp-scb-framework/BoxesPage.php:5
- > PHP Fatal error
Uncaught Error: Class 'scbOptions' not found in wp-content/plugins/wp-relevant-ads/includes/options.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in wp-relevant-ads/assets to your readme.txt
wp-relevant-ads/wp-relevant-ads.php Passed 13 tests
"WP Relevant Ads" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
Display relevant Ads or any other content based on their terms (categories, tags, etc..)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin34,738 lines of code in 195 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 5,847 | 12,126 | 22,015 |
PO File | 6 | 2,156 | 2,328 | 5,658 |
JavaScript | 17 | 808 | 530 | 3,421 |
Sass | 16 | 277 | 82 | 1,713 |
CSS | 21 | 246 | 93 | 1,576 |
Markdown | 2 | 68 | 0 | 214 |
JSON | 4 | 0 | 0 | 100 |
YAML | 2 | 2 | 0 | 28 |
SVG | 1 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,051)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 25.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,051.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 97 | |
▷ Abstract classes | 10 | 10.31% |
▷ Concrete classes | 87 | 89.69% |
▷ Final classes | 1 | 1.15% |
Methods | 1,177 | |
▷ Static methods | 210 | 17.84% |
▷ Public methods | 885 | 75.19% |
▷ Protected methods | 97 | 8.24% |
▷ Private methods | 195 | 16.57% |
Functions | 96 | |
▷ Named functions | 96 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 98 | |
▷ Global constants | 80 | 81.63% |
▷ Class constants | 18 | 18.37% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
28 PNG files occupy 0.27MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
images/howto-call-to-action.png | 21.27KB | 6.34KB | ▼ 70.21% |
images/howto-wrap-ads-in-blocks.png | 34.02KB | 14.09KB | ▼ 58.57% |
admin/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
admin/js/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |