Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.60ms] Passed 4 tests
An overview of server-side resources used by PromoBar by BestWebSoft - Customizable Advertisement Banner for WordPress Website
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 43.23 ▲5.09 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.08 ▼4.45 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.75 ▼2.80 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 87.13 ▼12.23 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.07 ▲6.00 |
Server storage [IO: ▲5.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 132 new files
Database: no new tables, 8 new options
New WordPress options |
---|
prmbr_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
bstwbsftwppdtplgns_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for PromoBar by BestWebSoft - Customizable Advertisement Banner for WordPress Website
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 14.30 ▲0.19 | 1.89 ▲0.34 | 44.34 ▲5.29 |
Dashboard /wp-admin | 2,242 ▲71 | 5.61 ▼0.01 | 92.00 ▲0.12 | 46.35 ▲1.56 |
Posts /wp-admin/edit.php | 2,204 ▲104 | 2.19 ▲0.22 | 34.22 ▼4.57 | 30.38 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,625 ▲97 | 23.44 ▲0.18 | 664.03 ▼57.96 | 58.38 ▲6.94 |
Media Library /wp-admin/upload.php | 1,441 ▲38 | 4.28 ▲0.11 | 99.07 ▲1.12 | 44.28 ▲1.71 |
BWS Panel /wp-admin/promobar.php?page=prmbr-bws-panel | 26 | 0.42 | 0.14 | 14.44 |
PromoBar /wp-admin/promobar.php | 26 | 0.42 | 0.09 | 5.35 |
Settings /wp-admin/promobar-settings.php | 26 | 0.42 | 0.06 | 6.67 |
Add New /wp-admin/promobar-new.php | 26 | 0.42 | 0.11 | 4.92 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/promobar/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/promobar/includes/class-prmbr-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/promobar/bws_menu/class-bws-settings.php:1453
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/promobar/promobar.php on line 339
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/promobar/promobar.php on line 339
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/promobar/includes/class-prmbr-add-new.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/promobar/promobar.php on line 339
- > 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/promobar.php?page=prmbr-bws-panel
- > Network (severe)
wp-admin/promobar.php?page=prmbr-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/promobar.php
- > Network (severe)
wp-admin/promobar.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/promobar-settings.php
- > Network (severe)
wp-admin/promobar-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/promobar-new.php
- > Network (severe)
wp-admin/promobar-new.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (PromoBar on the homepage in top position.), #2 (PromoBar list page.), #3 (PromoBar individual Settings.)
- Tags: You are using too many tags: 13 tag instead of maximum 10
promobar/promobar.php Passed 13 tests
The principal PHP file in "PromoBar by BestWebSoft - Customizable Advertisement Banner for WordPress Website" v. 1.2.0 is loaded by WordPress automatically on each request
93 characters long description:
Add and display HTML advertisement on WordPress website. Customize bar styles and appearance.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin24,195 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 4,923 | 8,660 | 12,003 |
PHP | 11 | 528 | 845 | 5,846 |
CSS | 11 | 155 | 255 | 5,461 |
JavaScript | 8 | 56 | 148 | 718 |
SVG | 4 | 0 | 0 | 167 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 58.20 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 8.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.38% |
Functions | 84 | |
▷ Named functions | 84 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
64 PNG files occupy 3.23MB with 1.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/images/tooltip_icons.png | 0.81KB | 0.82KB | 0.00% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_888888_256x240.png | 6.88KB | 4.20KB | ▼ 38.90% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_dadada_1x400.png | 0.31KB | 0.18KB | ▼ 39.81% |
screenshot-2.png | 84.39KB | 25.68KB | ▼ 69.57% |
bws_menu/icons/plugins/bike-rental.png | 6.86KB | 2.68KB | ▼ 60.89% |