Benchmarks
Plugin footprint 83% from 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.66MB] [CPU: ▼5.81ms] Passed 4 tests
An overview of server-side resources used by YooBar - Creating multiple elements for the website's top bar and footer bar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.66 | 47.02 ▼0.55 |
Dashboard /wp-admin | 3.98 ▲0.63 | 52.73 ▼9.61 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 61.04 ▲7.82 |
Add New Post /wp-admin/post-new.php | 6.60 ▲0.70 | 91.09 ▼16.25 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 41.56 ▲3.19 |
Add Bar /wp-admin/post-new.php?post_type=yoo_bar | 4.09 | 64.94 |
All Bars /wp-admin/edit.php?post_type=yoo_bar | 3.95 | 43.37 |
Getting Started /wp-admin/edit.php?post_type=yoo_bar&page=home | 3.81 | 35.03 |
Server storage [IO: ▲3.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for YooBar - Creating multiple elements for the website's top bar and footer bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲198 | 14.05 ▼0.32 | 6.87 ▲5.14 | 38.57 ▼2.54 |
Dashboard /wp-admin | 2,252 ▲84 | 5.20 ▼0.37 | 100.20 ▲11.57 | 67.87 ▲24.15 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.52 ▲0.57 | 37.38 ▼0.17 | 34.05 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,578 ▲52 | 23.75 ▲0.12 | 729.74 ▲58.55 | 35.77 ▼21.20 |
Media Library /wp-admin/upload.php | 1,463 ▲69 | 4.75 ▲0.48 | 105.38 ▲5.38 | 79.67 ▲30.33 |
Add Bar /wp-admin/post-new.php?post_type=yoo_bar | 7,415 | 10.00 | 528.13 | 266.78 |
All Bars /wp-admin/edit.php?post_type=yoo_bar | 1,153 | 2.23 | 37.18 | 40.13 |
Getting Started /wp-admin/edit.php?post_type=yoo_bar&page=home | 1,789 | 9.55 | 293.93 | 117.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
The following issues need your attention
- 83× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/yoo-bar/assets/public/view/YooFieldMeta.php:2
- > PHP Warning
Use of undefined constant YOO_BAR_PATH - assumed 'YOO_BAR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/yoo-bar/assets/public/extra/ToPviews.php on line 17
- > PHP Warning
include(): Failed opening 'YOO_BAR_PATHassets/admin/extra/addressicon.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/yoo-bar/assets/public/view/YooAddress.php on line 3
- > PHP Notice
Undefined variable: yoo_bar_slideanimation in wp-content/plugins/yoo-bar/assets/public/view/YooTwoClmn.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yoo-bar/class/admin/class-yoo-howto-use.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/yoo-bar/assets/public/view/YooLinkBtn.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yoo-bar/includes/metaData/fieldData/class-yoo-address-field.php:86
- > PHP Warning
include(): Failed opening 'YOO_BAR_PATHassets/public/view/YooTwoClmn.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/yoo-bar/assets/public/extra/ToPviews.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yoo-bar/includes/metaData/fieldData/class-yoo-typed-animation.php:118
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yoo-bar/includes/metaData/fieldData/class-yoo-countdownwrap.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Requires at least: Version not formatted correctly
yoo-bar/yoo-bar.php 92% from 13 tests
"YooBar - Creating multiple elements for the website's top bar and footer bar" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
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
No dangerous file extensions were detected60,698 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 9 | 16 | 54,306 |
PHP | 45 | 809 | 613 | 4,426 |
CSS | 5 | 266 | 9 | 1,773 |
JavaScript | 6 | 13 | 11 | 167 |
SVG | 17 | 2 | 0 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 2 | 1.38% |
▷ Public methods | 140 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.45% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 compressed PNG files occupy 0.30MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/backgro.png | 71.85KB | 71.13KB | ▼ 1.01% |
assets/admin/img/play.png | 2.79KB | 2.25KB | ▼ 19.17% |
assets/admin/img/location-settings-min.png | 70.49KB | 69.77KB | ▼ 1.03% |
assets/admin/img/DISPLAY-SETTINGS-min.png | 54.97KB | 53.97KB | ▼ 1.81% |
assets/admin/img/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |