83% ghl-wizard

Code Review | GHL Wizard

WordPress plugin GHL Wizard scored83%from 54 tests.

About plugin

  • Plugin page: ghl-wizard
  • Plugin version: 1.0.08
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 11, 2023
  • Latest release: Oct 11, 2023
  • Number of updates: 21
  • Update frequency: every 11.6 days
  • Top authors: niaj (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /1,517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.18ms] Passed 4 tests

This is a short check of server-side resources used by GHL Wizard
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1143.25 ▼3.15
Dashboard /wp-admin3.41 ▲0.0657.57 ▼16.71
Posts /wp-admin/edit.php3.52 ▲0.1651.43 ▼2.27
Add New Post /wp-admin/post-new.php6.01 ▲0.1291.69 ▼14.58
Media Library /wp-admin/upload.php3.33 ▲0.1038.06 ▲2.13

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for GHL Wizard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲13414.13 ▼0.259.26 ▲6.9941.21 ▼2.04
Dashboard /wp-admin2,206 ▲265.75 ▲0.1692.37 ▼2.5167.89 ▲24.95
Posts /wp-admin/edit.php2,132 ▲322.26 ▲0.2538.66 ▼3.2934.82 ▼5.31
Add New Post /wp-admin/post-new.php1,561 ▲3518.34 ▼4.82689.87 ▲28.0654.01 ▼7.11
Media Library /wp-admin/upload.php1,420 ▲234.41 ▲0.22101.38 ▼0.0675.47 ▲32.63

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 9× 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/ghl-wizard/api/get-token.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ghl-wizard/inc/product-page-settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ghl-wizard/api/get-token.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ghl-wizard/api/contacts.php:173
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ghl-wizard/inc/options-form.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ghl-wizard/inc/support-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ghl-wizard/inc/settings-form.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ghl-wizard/inc/settings-page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ghl-wizard/inc/woo.php:62

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Connect to goHighLevel), #2 (Select your location), #3 (Location is connected), #4 (Set the action you want after a successful product puchase.)
You can take inspiration from this readme.txt

ghl-wizard/ghl-wizard.php 85% from 13 tests

The entry point to "GHL Wizard" version 1.0.08 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin802 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP1527258757
CSS23037
JavaScript2418

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions2492.31%
▷ Anonymous functions27.69%
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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ghl-large.png1.95KB1.50KB▼ 23.26%
images/ghl.png0.79KB0.77KB▼ 3.09%