Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/cbxform/includes/class-emailtemplate.php+166
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.31MB] [CPU: ▼50.53ms] Passed 4 tests
Analyzing server-side resources used by CBX Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▼0.77 | 10.30 ▼32.44 |
Dashboard /wp-admin | 2.98 ▼0.59 | 14.32 ▼41.30 |
Posts /wp-admin/edit.php | 2.98 ▼0.70 | 12.92 ▼37.41 |
Add New Post /wp-admin/post-new.php | 2.98 ▼3.17 | 14.08 ▼90.96 |
Media Library /wp-admin/upload.php | 2.98 ▼0.51 | 15.55 ▼22.97 |
Forms /wp-admin/edit.php?post_type=cbxform | 2.98 | 11.89 |
Setting /wp-admin/edit.php?post_type=cbxform&page=cbxformsettings | 2.98 | 11.04 |
Add New /wp-admin/post-new.php?post_type=cbxform | 2.98 | 14.67 |
Server storage [IO: ▲2.17MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 905 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
cbxform_email |
cbxform_security |
cbxform_currency |
cbxform_global |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CBX Forms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,096 ▲335 | 16.21 ▲1.55 | 46.66 ▲44.84 | 36.30 ▼9.61 |
Dashboard /wp-admin | 2,383 ▲206 | 6.38 ▲0.70 | 114.44 ▲23.17 | 37.65 ▼7.24 |
Posts /wp-admin/edit.php | 2,308 ▲208 | 3.53 ▲1.49 | 51.76 ▲16.75 | 32.63 ▼6.53 |
Add New Post /wp-admin/post-new.php | 1,564 ▲8 | 23.09 ▲4.80 | 596.88 ▼55.74 | 32.71 ▼24.09 |
Media Library /wp-admin/upload.php | 1,451 ▲48 | 4.37 ▼0.08 | 81.40 ▼25.68 | 42.68 ▼2.10 |
Forms /wp-admin/edit.php?post_type=cbxform | 1,335 | 3.77 | 51.61 | 28.97 |
Setting /wp-admin/edit.php?post_type=cbxform&page=cbxformsettings | 2,720 | 8.87 | 192.86 | 56.18 |
Add New /wp-admin/post-new.php?post_type=cbxform | 3,990 | 10.74 | 325.38 | 127.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/cbxform/includes/class-emailtemplate.php+166
Array and string offset access syntax with curly braces is deprecated
- The uninstall procedure has failed, leaving 12 options in the database
- cbxform_integration
- cbxform_security
- can_compress_scripts
- theysaidso_admin_options
- cbxform_currency
- widget_recent-comments
- widget_theysaidso_widget
- cbxform_email
- db_upgraded
- cbxform_global
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 24 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=cbxform
- > Deprecated in wp-content/plugins/cbxform/includes/class-emailtemplate.php+168
Array and string offset access syntax with curly braces is deprecated
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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cbxform/public/partials/cbxform-public-display.php
- > /wp-content/plugins/cbxform/public/validation/index.php
- 792× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Respect\\Validation\\Rules\\AbstractRule' not found in wp-content/plugins/cbxform/public/validation/vendor/respect/validation/library/Rules/Charset.php:16
- > PHP Fatal error
Uncaught Error: Class 'Respect\\Validation\\Exceptions\\SubdivisionCodeException' not found in wp-content/plugins/cbxform/public/validation/vendor/respect/validation/library/Exceptions/SubdivisionCode/FiSubdivisionCodeException.php:21
- > PHP Fatal error
Uncaught Error: Class 'Respect\\Validation\\Rules\\AbstractSearcher' not found in wp-content/plugins/cbxform/public/validation/vendor/respect/validation/library/Rules/SubdivisionCode/PlSubdivisionCode.php:23
- > PHP Fatal error
Uncaught Error: Class 'Respect\\Validation\\Exceptions\\ValidationException' not found in wp-content/plugins/cbxform/public/validation/vendor/respect/validation/library/Exceptions/NotEmptyException.php:14
- > PHP Fatal error
Uncaught Error: Class 'Respect\\Validation\\Rules\\AbstractSearcher' not found in wp-content/plugins/cbxform/public/validation/vendor/respect/validation/library/Rules/SubdivisionCode/NuSubdivisionCode.php:23
- > PHP Fatal error
Uncaught Error: Class 'Respect\\Validation\\Rules\\AbstractSearcher' not found in wp-content/plugins/cbxform/public/validation/vendor/respect/validation/library/Rules/SubdivisionCode/FoSubdivisionCode.php:23
- > PHP Fatal error
Uncaught Error: Class 'Respect\\Validation\\Rules\\AbstractSearcher' not found in wp-content/plugins/cbxform/public/validation/vendor/respect/validation/library/Rules/SubdivisionCode/GfSubdivisionCode.php:23
- > PHP Fatal error
Uncaught Error: Class 'Respect\\Validation\\Exceptions\\ValidationException' not found in wp-content/plugins/cbxform/public/validation/vendor/respect/validation/library/Exceptions/MinimumAgeException.php:14
- > PHP Fatal error
Uncaught Error: Class 'Respect\\Validation\\Exceptions\\SubdivisionCodeException' not found in wp-content/plugins/cbxform/public/validation/vendor/respect/validation/library/Exceptions/SubdivisionCode/MtSubdivisionCodeException.php:21
- > PHP Fatal error
Uncaught Error: Class 'Respect\\Validation\\Exceptions\\SubdivisionCodeException' not found in wp-content/plugins/cbxform/public/validation/vendor/respect/validation/library/Exceptions/SubdivisionCode/AiSubdivisionCodeException.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=cbxform&page=cbxformsettings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/edit.php?post_type=cbxform&page=cbxformsettings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: form builder, drag and drop, form
cbxform/cbxform.php Passed 13 tests
The main file in "CBX Forms" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
33 characters long description:
Form Builder Plugin for wordpress
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin28,065 lines of code in 873 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 846 | 5,303 | 12,412 | 22,961 |
JavaScript | 15 | 924 | 1,361 | 3,245 |
CSS | 10 | 145 | 47 | 1,272 |
PO File | 1 | 276 | 645 | 584 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 2.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 831 | |
▷ Abstract classes | 9 | 1.08% |
▷ Concrete classes | 822 | 98.92% |
▷ Final classes | 0 | 0.00% |
Methods | 661 | |
▷ Static methods | 79 | 11.95% |
▷ Public methods | 563 | 85.17% |
▷ Protected methods | 45 | 6.81% |
▷ Private methods | 53 | 8.02% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 61 | |
▷ Global constants | 3 | 4.92% |
▷ Class constants | 58 | 95.08% |
▷ Public constants | 58 | 100.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
25 PNG files occupy 0.73MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/close.png | 1.54KB | 1.09KB | ▼ 28.93% |
admin/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
admin/css/remove.png | 0.32KB | 0.24KB | ▼ 22.60% |
assets/screenshot-8.png | 30.98KB | 15.10KB | ▼ 51.26% |
assets/screenshot-6.png | 32.06KB | 15.46KB | ▼ 51.78% |