84% cf2agile

Code Review | Contact Form to Agile

WordPress plugin Contact Form to Agile scored84%from 54 tests.

About plugin

  • Plugin page: cf2agile
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.3-5.9.0
  • WordPress version: 6.3.1
  • First release: Feb 19, 2018
  • Latest release: Mar 14, 2023
  • Number of updates: 10
  • Update frequency: every 185.3 days
  • Top authors: upqode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.77ms] Passed 4 tests

Server-side resources used by Contact Form to Agile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.58 ▼1.76
Dashboard /wp-admin3.38 ▲0.0344.26 ▼14.06
Posts /wp-admin/edit.php3.43 ▲0.0745.73 ▼5.52
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.60 ▼5.75
Media Library /wp-admin/upload.php3.30 ▲0.0734.29 ▲0.47
Contact Form to Agile /wp-admin/options-general.php?page=cf2agile3.2633.01

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form to Agile
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.73 ▲0.441.67 ▼0.2039.61 ▼3.42
Dashboard /wp-admin2,210 ▲195.86 ▼0.0398.74 ▼3.8438.43 ▼1.75
Posts /wp-admin/edit.php2,093 ▲72.04 ▼0.0139.17 ▲3.4435.12 ▲1.10
Add New Post /wp-admin/post-new.php1,523 ▲423.52 ▲2.30670.26 ▼15.6756.75 ▼4.47
Media Library /wp-admin/upload.php1,389 ▲14.21 ▼0.03103.00 ▲6.2745.75 ▲1.20
Contact Form to Agile /wp-admin/options-general.php?page=cf2agile8832.0226.0227.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'cf2Agile_Field' not found in wp-content/plugins/cf2agile/fields/cf2agile_Field_CompanyName.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf2agile/cf2agile.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'cf2Agile_Field' not found in wp-content/plugins/cf2agile/fields/cf2agile_Field_CustomerEmail.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'cf2Agile_Field' not found in wp-content/plugins/cf2agile/fields/cf2agile_Field_Budget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'cf2Agile_Field' not found in wp-content/plugins/cf2agile/fields/cf2agile_Field_ProjectName.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: active collab, agile, activecollab, contact form

cf2agile/cf2agile.php 92% from 13 tests

The primary PHP file in "Contact Form to Agile" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected758 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8196156758

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods3391.67%
▷ Protected methods00.00%
▷ Private methods38.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin