Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/jb-common/lib/widgets/bio.php+114
Function create_function() is deprecated
Server metrics [RAM: ▼1.85MB] [CPU: ▼49.53ms] Passed 4 tests
An overview of server-side resources used by JB Common
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 5.88 ▼35.85 |
Dashboard /wp-admin | 2.15 ▼1.15 | 7.54 ▼41.44 |
Posts /wp-admin/edit.php | 2.15 ▼1.20 | 8.20 ▼36.15 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.73 | 9.63 ▼84.67 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 8.01 ▼30.06 |
Show Log /wp-admin/admin.php?page=jbcommon-show-log | 2.15 | 8.80 |
Info /wp-admin/admin.php?page=jbcommon-info | 2.15 | 8.04 |
Configuration /wp-admin/admin.php?page=jbcommon-configuration | 2.15 | 7.79 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 34 new options
New WordPress options |
---|
jbcommon_email_from_address |
jbcommon_log_level_display |
widget_recent-posts |
jbcommon_log_level_file |
jbcommon_menu_position |
jbcommon_debug_mode |
jbcommon_email_from_name |
jbcommon_maintenance_key |
widget_recent-comments |
jbcommon_maintenance_url |
... |
Browser metrics Passed 4 tests
Checking browser requirements for JB Common
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲171 | 13.23 ▼1.01 | 1.83 ▲0.08 | 40.84 ▼5.05 |
Dashboard /wp-admin | 2,270 ▲79 | 5.89 ▲1.00 | 104.97 ▼6.91 | 76.21 ▲31.37 |
Posts /wp-admin/edit.php | 2,153 ▲67 | 2.06 ▲0.00 | 39.86 ▲2.35 | 34.78 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,570 ▲37 | 23.50 ▲0.26 | 697.79 ▼22.24 | 56.52 ▲1.10 |
Media Library /wp-admin/upload.php | 1,449 ▲61 | 4.13 ▼0.08 | 99.78 ▼17.18 | 40.78 ▼6.17 |
Show Log /wp-admin/admin.php?page=jbcommon-show-log | 836 | 2.01 | 24.35 | 26.30 |
Info /wp-admin/admin.php?page=jbcommon-info | 2,532 | 2.02 | 28.28 | 53.71 |
Configuration /wp-admin/admin.php?page=jbcommon-configuration | 2,089 | 1.73 | 25.78 | 36.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/jb-common/lib/widgets/bio.php+114
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 34 options in the database
- jbcommon_meta_tag_keywords
- jbcommon_debug_mode
- widget_recent-comments
- jbcommon_favicon_mime
- jbcommon_log_file
- jbcommon_footer
- jbcommon_email_from_address
- jbcommon_show_validator_link
- jbcommon_meta_tag_author
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jbcommon-configuration
- > Deprecated in wp-content/plugins/jb-common/lib/widgets/feeds.php+220
Function create_function() is deprecated
- > GET request to /wp-admin/admin.php?page=jbcommon-info
- > Notice in wp-content/plugins/jb-common/lib/admin/info.php+46
Undefined variable: encrypted
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/jb-common/cfg/options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jb-common/lib/deployment.php:57
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jb-common/lib/widgets/feeds.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/jb-common/cfg/info.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jb-common/jb-common.php:46
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jb-common/lib/widgets/bio.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jb-common/lib/shortcodes.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jb-common/lib/hooks.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in jb-common/assets to your readme.txt
- Tags: You are using too many tags: 22 tag instead of maximum 10
jb-common/jb-common.php 92% from 13 tests
The entry point to "JB Common" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 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
There were no executable files found in this plugin3,824 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 853 | 305 | 3,055 |
PO File | 1 | 227 | 330 | 458 |
Sass | 4 | 86 | 0 | 309 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 39 | 70.91% |
▷ Protected methods | 16 | 29.09% |
▷ Private methods | 0 | 0.00% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 50 | |
▷ Global constants | 50 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.83MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 126.75KB | 49.38KB | ▼ 61.04% |
img/rss.oxygen-team.gnu_gpl.16x16.png | 0.58KB | 0.66KB | 0.00% |
assets/screenshot-2.png | 172.58KB | 65.65KB | ▼ 61.96% |
assets/screenshot-1.png | 366.33KB | 134.01KB | ▼ 63.42% |
assets/banner-772x250.png | 19.75KB | 16.86KB | ▼ 14.62% |