84% processors-for-caldera-forms

Code Review | Processors for Caldera Forms

WordPress plugin Processors for Caldera Forms scored84%from 54 tests.

About plugin

  • Plugin page: processors-for-ca...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Jul 3, 2017
  • Latest release: Jul 16, 2017
  • Number of updates: 10
  • Update frequency: every 1.4 days
  • Top authors: xeiterochek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,083 total downloads

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: ▲0.01MB] [CPU: ▼3.16ms] Passed 4 tests

A check of server-side resources used by Processors for Caldera Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.08 ▲1.68
Dashboard /wp-admin3.31 ▲0.0154.38 ▲4.12
Posts /wp-admin/edit.php3.36 ▲0.0151.76 ▲2.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.90 ▼19.08
Media Library /wp-admin/upload.php3.24 ▲0.0136.86 ▲1.90

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Processors for Caldera Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.181.98 ▲0.4044.29 ▲0.75
Dashboard /wp-admin2,195 ▲185.63 ▼0.0295.46 ▲5.2542.93 ▼4.10
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0434.59 ▼3.3133.71 ▼6.64
Add New Post /wp-admin/post-new.php1,526 ▼522.97 ▲0.01680.17 ▼17.4953.90 ▼3.25
Media Library /wp-admin/upload.php1,400 ▼04.12 ▼0.0799.52 ▼11.5543.64 ▲0.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Caldera_Forms_Processor_Processor' not found in wp-content/plugins/processors-for-caldera-forms/src/Processor/Zoho.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Caldera_Forms_Processor_UI' not found in wp-content/plugins/processors-for-caldera-forms/src/Processor/ZohoUI.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === processors-for-caldera-forms === )
The official readme.txt might help

processors-for-caldera-forms/bootstrap.php 92% from 13 tests

The principal PHP file in "Processors for Caldera Forms" v. 0.1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("processors-for-caldera-forms.php" instead of "bootstrap.php")

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
No dangerous file extensions were detected318 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6140224318

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.75
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1361.90%
▷ Protected methods733.33%
▷ Private methods14.76%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin