Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.44MB] [CPU: ▲24.26ms] Passed 4 tests
An overview of server-side resources used by WP Builder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.86 | 36.95 ▼3.51 |
Dashboard /wp-admin | 4.94 ▲1.64 | 88.24 ▲40.88 |
Posts /wp-admin/edit.php | 5.01 ▲1.65 | 77.95 ▲31.03 |
Add New Post /wp-admin/post-new.php | 7.74 ▲1.86 | 120.00 ▲34.59 |
Media Library /wp-admin/upload.php | 4.82 ▲1.59 | 71.30 ▲34.92 |
WP Builder Cloud /wp-admin/admin.php?page=cjwpbldr-cloud-redirect | 4.73 | 56.85 |
WP Builder /wp-admin/admin.php?page=cjwpbldr | 4.73 | 61.32 |
Server storage [IO: ▲22.78MB] [DB: ▲0.08MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 707 new files
Database: no new tables, 9 new options
New WordPress options |
---|
cjwpbldr_globals_sidebars |
db_upgraded |
cjwpbldr_api_token |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
_cjwpbldr_options_ |
Browser metrics Passed 4 tests
Checking browser requirements for WP Builder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,948 ▲1,213 | 23.99 ▲9.31 | 110.62 ▲108.65 | 33.58 ▼15.91 |
Dashboard /wp-admin | 2,731 ▲546 | 9.63 ▲3.79 | 188.15 ▲69.35 | 66.72 ▲20.83 |
Posts /wp-admin/edit.php | 2,664 ▲575 | 6.96 ▲4.92 | 100.39 ▲62.40 | 60.33 ▲25.27 |
Add New Post /wp-admin/post-new.php | 1,766 ▲231 | 23.89 ▲0.80 | 663.69 ▼38.17 | 48.93 ▼6.96 |
Media Library /wp-admin/upload.php | 1,780 ▲389 | 7.10 ▲2.90 | 123.56 ▲23.02 | 87.65 ▲43.09 |
WP Builder Cloud /wp-admin/admin.php?page=cjwpbldr-cloud-redirect | 1,595 | 7.04 | 98.48 | 109.36 |
WP Builder /wp-admin/admin.php?page=cjwpbldr | 1,780 | 7.04 | 100.71 | 102.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- cjwpbldr_api_token
- theysaidso_admin_options
- widget_recent-posts
- _cjwpbldr_options_
- cjwpbldr_globals_sidebars
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 24× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/cssjockey-add-ons/framework/lib/gump/examples/street_address.php
- > /wp-content/plugins/cssjockey-add-ons/framework/lib/gump/examples/noise_words.php
- > /wp-content/plugins/cssjockey-add-ons/framework/html/nav-menu-items/button.php
- > /wp-content/plugins/cssjockey-add-ons/framework/lib/gump/examples/files.php
- > /wp-content/plugins/cssjockey-add-ons/framework/lib/gump/examples/url_exists.php
- > /wp-content/plugins/cssjockey-add-ons/framework/lib/gump/examples/guid.php
- > /wp-content/plugins/cssjockey-add-ons/framework/admin-pages/core-cloud.php
- > /wp-content/plugins/cssjockey-add-ons/framework/html/nav-menu-items/social-link.php
- > /wp-content/plugins/cssjockey-add-ons/framework/lib/gump/examples/explicit_fields.php
- > /wp-content/plugins/cssjockey-add-ons/framework/lib/gump/tests.php
- 271× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: classes in wp-content/plugins/cssjockey-add-ons/framework/html/nav-menu-items/button.php on line 13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cssjockey-add-ons/framework/html/forms/jquery/parts/set-password.php:9
- > PHP Fatal error
Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/cssjockey-add-ons/framework/lib/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cssjockey-add-ons/framework/ui-blocks.css.php:28
- > PHP Notice
Undefined variable: args in wp-content/plugins/cssjockey-add-ons/framework/html/nav-menu-items/logo.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cssjockey-add-ons/framework/admin-pages/install-themes/step-3.php:33
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/cssjockey-add-ons/framework/lib/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/cssjockey-add-ons/framework/lib/vendor/scssphp/scssphp/src/Formatter/Compressed.php:22
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cssjockey-add-ons/framework/html/parts/admin-form-css-styles.php on line 5
- > PHP Notice
Trying to get property 'before' of non-object in wp-content/plugins/cssjockey-add-ons/framework/html/nav-menu-items/social-link.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in cssjockey-add-ons/assets to your readme.txt
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cssjockey-add-ons/init.php 77% from 13 tests
Analyzing the main PHP file in "WP Builder" version 3.0.7
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 322 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("cssjockey-add-ons.php" instead of "init.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected130,872 lines of code in 575 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 291 | 8,654 | 14,007 | 52,276 |
JavaScript | 41 | 3,820 | 3,676 | 31,740 |
Sass | 188 | 4,275 | 245 | 27,704 |
SVG | 8 | 0 | 14 | 9,162 |
CSS | 25 | 1,271 | 1,200 | 5,109 |
JSON | 11 | 0 | 0 | 2,221 |
PO File | 1 | 987 | 992 | 1,991 |
Markdown | 8 | 251 | 0 | 626 |
YAML | 1 | 0 | 0 | 31 |
HTML | 1 | 0 | 0 | 12 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,087)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 190)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 43.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,087.00 |
Average method complexity | 4.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 190.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 15 | |
Classes | 152 | |
▷ Abstract classes | 13 | 8.55% |
▷ Concrete classes | 139 | 91.45% |
▷ Final classes | 0 | 0.00% |
Methods | 1,829 | |
▷ Static methods | 161 | 8.80% |
▷ Public methods | 1,285 | 70.26% |
▷ Protected methods | 525 | 28.70% |
▷ Private methods | 19 | 1.04% |
Functions | 171 | |
▷ Named functions | 36 | 21.05% |
▷ Anonymous functions | 135 | 78.95% |
Constants | 86 | |
▷ Global constants | 11 | 12.79% |
▷ Class constants | 75 | 87.21% |
▷ Public constants | 75 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
60 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
framework/lib/cmb2/apigen/theme-bootstrap/src/resources/collapsed.png | 0.24KB | 0.14KB | ▼ 41.77% |
assets/css/images/colorpicker/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |
framework/lib/cmb2/apigen/theme-bootstrap/src/resources/tree-cleaner.png | 0.12KB | 0.08KB | ▼ 33.33% |
assets/css/images/colorpicker/colorpicker_rgb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
assets/css/images/raster_dot.png | 0.08KB | 0.10KB | 0.00% |