84% wpf-add-on-by-click5

Code Review | click5 CRM add-on to WPForms

WordPress plugin click5 CRM add-on to WPForms scored84%from 54 tests.

About plugin

  • Plugin page: wpf-add-on-by-click5
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jan 21, 2021
  • Latest release: Sep 28, 2023
  • Number of updates: 9
  • Update frequency: every 109.0 days
  • Top authors: click5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /708 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by click5 CRM add-on to WPForms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.17 ▼2.85
Dashboard /wp-admin3.31 ▲0.0056.63 ▼3.66
Posts /wp-admin/edit.php3.36 ▲0.0050.02 ▼3.17
Add New Post /wp-admin/post-new.php5.89 ▼0.0185.98 ▼42.94
Media Library /wp-admin/upload.php3.23 ▲0.0038.48 ▲0.95

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

click5 CRM add-on to WPForms: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.021.86 ▼0.2843.64 ▼1.01
Dashboard /wp-admin2,198 ▲185.58 ▼0.0585.85 ▼5.6037.81 ▼1.65
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0035.20 ▼3.8133.55 ▼4.10
Add New Post /wp-admin/post-new.php1,526 ▼023.48 ▲0.32637.54 ▼54.1951.80 ▼4.83
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.00103.67 ▲1.4242.40 ▼2.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpf-add-on-by-click5/api.php:361
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpf-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
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: click5, crm, contact, contact form, form

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

"click5 CRM add-on to WPForms" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpf-add-on-by-click5.php" instead of "wpf-addon-by-click5.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,413 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript122957943
PHP322154898
CSS111424572

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png68.01KB33.51KB▼ 50.73%
assets/banner-772x250.png53.83KB21.55KB▼ 59.97%