83% clio-grow-form

Code Review | Clio Grow

WordPress plugin Clio Grow scored83%from 54 tests.

About plugin

  • Plugin page: clio-grow-form
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Aug 4, 2023
  • Number of updates: 14
  • Update frequency: every 124.0 days
  • Top authors: cliogrow (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /5,853 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.98ms] Passed 4 tests

Analyzing server-side resources used by Clio Grow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.93 ▼1.67
Dashboard /wp-admin3.35 ▲0.0148.62 ▼9.10
Posts /wp-admin/edit.php3.40 ▲0.0548.76 ▼1.92
Add New Post /wp-admin/post-new.php5.95 ▲0.0785.31 ▼19.24
Media Library /wp-admin/upload.php3.28 ▲0.0535.60 ▲0.97
Clio Grow Settings /wp-admin/options-general.php?page=Grow_Form_settings3.2838.39

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
Grow_Form_version
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Clio Grow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.37 ▼0.988.39 ▲6.9037.99 ▼0.68
Dashboard /wp-admin2,203 ▲235.64 ▼0.0184.40 ▼5.9736.22 ▼9.65
Posts /wp-admin/edit.php2,087 ▼132.01 ▲0.0333.88 ▼1.9132.12 ▼6.60
Add New Post /wp-admin/post-new.php1,533 ▲722.97 ▼0.56609.88 ▼20.5664.36 ▼4.43
Media Library /wp-admin/upload.php1,402 ▲24.15 ▼0.07102.35 ▼1.9742.59 ▲0.09
Clio Grow Settings /wp-admin/options-general.php?page=Grow_Form_settings1,1583.1248.9254.08

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • Grow_Form_version
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/clio-grow-form/includes/templates/form.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: contact, lawyer, wordpress, plugin, lead tracking...

clio-grow-form/grow-form.php 77% from 13 tests

The main PHP script in "Clio Grow" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.9" instead of "4.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("clio-grow-form.php" instead of "grow-form.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,190 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP92816201,134
JavaScript516656

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity30.60
▷ Minimum class complexity5.00
▷ Maximum class complexity61.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods53
▷ Static methods47.55%
▷ Public methods4584.91%
▷ Protected methods35.66%
▷ Private methods59.43%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/templates/images/clio-grow-logo-dark-small-200x100.png12.74KB3.33KB▼ 73.87%
includes/templates/images/clio-grow-logo-dark-small-169x75.png10.76KB3.09KB▼ 71.26%