10% cbxform

Code Review | CBX Forms

WordPress plugin CBX Forms scored10%from 54 tests.

About plugin

  • Plugin page: cbxform
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Aug 12, 2016
  • Number of updates: 4
  • Update frequency: every 2.8 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,241 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.96 ▼0.7710.30 ▼32.44
Dashboard /wp-admin2.98 ▼0.5914.32 ▼41.30
Posts /wp-admin/edit.php2.98 ▼0.7012.92 ▼37.41
Add New Post /wp-admin/post-new.php2.98 ▼3.1714.08 ▼90.96
Media Library /wp-admin/upload.php2.98 ▼0.5115.55 ▼22.97
Forms /wp-admin/edit.php?post_type=cbxform2.9811.89
Setting /wp-admin/edit.php?post_type=cbxform&page=cbxformsettings2.9811.04
Add New /wp-admin/post-new.php?post_type=cbxform2.9814.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,096 ▲33516.21 ▲1.5546.66 ▲44.8436.30 ▼9.61
Dashboard /wp-admin2,383 ▲2066.38 ▲0.70114.44 ▲23.1737.65 ▼7.24
Posts /wp-admin/edit.php2,308 ▲2083.53 ▲1.4951.76 ▲16.7532.63 ▼6.53
Add New Post /wp-admin/post-new.php1,564 ▲823.09 ▲4.80596.88 ▼55.7432.71 ▼24.09
Media Library /wp-admin/upload.php1,451 ▲484.37 ▼0.0881.40 ▼25.6842.68 ▼2.10
Forms /wp-admin/edit.php?post_type=cbxform1,3353.7751.6128.97
Setting /wp-admin/edit.php?post_type=cbxform&page=cbxformsettings2,7208.87192.8656.18
Add New /wp-admin/post-new.php?post_type=cbxform3,99010.74325.38127.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP8465,30312,41222,961
JavaScript159241,3613,245
CSS10145471,272
PO File1276645584
SVG1003

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 code0.33
Average class complexity2.48
▷ Minimum class complexity1.00
▷ Maximum class complexity187.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces9
Interfaces2
Traits0
Classes831
▷ Abstract classes91.08%
▷ Concrete classes82298.92%
▷ Final classes00.00%
Methods661
▷ Static methods7911.95%
▷ Public methods56385.17%
▷ Protected methods456.81%
▷ Private methods538.02%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants61
▷ Global constants34.92%
▷ Class constants5895.08%
▷ Public constants58100.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
FileSize - originalSize - compressedSavings
admin/images/close.png1.54KB1.09KB▼ 28.93%
admin/css/chosen-sprite@2x.png0.72KB0.83KB0.00%
admin/css/remove.png0.32KB0.24KB▼ 22.60%
assets/screenshot-8.png30.98KB15.10KB▼ 51.26%
assets/screenshot-6.png32.06KB15.46KB▼ 51.78%