84% click5-crm-add-on-to-ninja-forms

Code Review | click5 CRM add-on to Ninja Forms

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

About plugin

  • Plugin page: click5-crm-add-on...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Oct 11, 2021
  • Latest release: Sep 28, 2023
  • Number of updates: 8
  • Update frequency: every 90.0 days
  • Top authors: click5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /364 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 gracefully, with no errors

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

Server-side resources used by click5 CRM add-on to Ninja Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.99 ▼4.19
Dashboard /wp-admin3.31 ▲0.0044.60 ▼3.89
Posts /wp-admin/edit.php3.36 ▲0.0049.01 ▲2.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.82 ▼29.88
Media Library /wp-admin/upload.php3.23 ▲0.0035.71 ▼3.51

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

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

Browser metrics Passed 4 tests

A check of browser resources used by click5 CRM add-on to Ninja Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.114.92 ▲2.9240.56 ▼4.49
Dashboard /wp-admin2,209 ▲305.91 ▲0.1196.22 ▼8.9740.76 ▼2.60
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0836.29 ▲0.8432.10 ▼2.34
Add New Post /wp-admin/post-new.php1,520 ▼1323.11 ▼0.03660.64 ▲11.4264.22 ▲12.58
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0999.84 ▼17.6643.21 ▼2.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
Good news, no errors were detected

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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/click5-crm-add-on-to-ninja-forms/api.php:304
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/click5-crm-add-on-to-ninja-forms/api.php:304

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: form, contact, contact form, click5, crm

click5-crm-add-on-to-ninja-forms/ninja-addon-by-click5.php 92% from 13 tests

The main PHP script in "click5 CRM add-on to Ninja Forms" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("click5-crm-add-on-to-ninja-forms.php" instead of "ninja-addon-by-click5.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,426 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113118928
PHP316938851
CSS111424572
XML30058
JSON10017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions36
▷ Named functions3494.44%
▷ Anonymous functions25.56%
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-772x250.png58.90KB23.23KB▼ 60.56%
assets/banner-1544x500.png71.54KB34.55KB▼ 51.70%