84% cf7-add-on-by-click5

Code Review | click5 CRM add-on to Contact Form 7

WordPress plugin click5 CRM add-on to Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: cf7-add-on-by-click5
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Oct 20, 2020
  • Latest release: Sep 28, 2023
  • Number of updates: 10
  • Update frequency: every 107.3 days
  • Top authors: click5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /519 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.61ms] Passed 4 tests

Analyzing server-side resources used by click5 CRM add-on to Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.38 ▼5.59
Dashboard /wp-admin3.31 ▲0.0041.97 ▼8.36
Posts /wp-admin/edit.php3.36 ▲0.0044.62 ▼5.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.44 ▼10.51
Media Library /wp-admin/upload.php3.23 ▲0.0033.44 ▲0.45

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for click5 CRM add-on to Contact Form 7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.64 ▼0.641.76 ▼0.2243.18 ▼9.19
Dashboard /wp-admin2,206 ▲155.86 ▲0.96107.06 ▲4.3039.47 ▼5.14
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0338.72 ▼1.1635.51 ▲0.13
Add New Post /wp-admin/post-new.php1,528 ▼918.28 ▼5.00598.38 ▼1.3761.50 ▼2.65
Media Library /wp-admin/upload.php1,382 ▼94.31 ▲0.0698.94 ▲2.0742.93 ▲0.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-add-on-by-click5/api.php:361
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-add-on-by-click5/api.php:361

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: crm, click5crm, click5

cf7-add-on-by-click5/cf7-addon-by-click5.php 92% from 13 tests

"click5 CRM add-on to Contact Form 7" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cf7-add-on-by-click5.php" instead of "cf7-addon-by-click5.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,410 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript122957943
PHP321656895
CSS111424572

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions3694.74%
▷ Anonymous functions25.26%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png71.54KB34.55KB▼ 51.70%
assets/banner-772x250.png58.90KB23.23KB▼ 60.56%