84% gist-for-woocommerce

Code Review | Gist for WooCommerce

WordPress plugin Gist for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: gist-for-woocommerce
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 29, 2019
  • Latest release: Aug 24, 2023
  • Number of updates: 28
  • Update frequency: every 47.7 days
  • Top authors: convertfox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,383 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Gist for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.43 ▼2.85
Dashboard /wp-admin3.31 ▲0.0050.72 ▼5.88
Posts /wp-admin/edit.php3.36 ▲0.0049.72 ▼8.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.94 ▼16.45
Media Library /wp-admin/upload.php3.23 ▲0.0039.90 ▲3.57

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Gist for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.58 ▼0.811.99 ▲0.3344.80 ▲3.46
Dashboard /wp-admin2,206 ▲185.83 ▲0.93109.06 ▼2.1942.88 ▼1.66
Posts /wp-admin/edit.php2,086 ▼62.05 ▼0.0135.37 ▼11.6133.02 ▼4.01
Add New Post /wp-admin/post-new.php1,371 ▼16716.74 ▼6.35572.97 ▼111.8052.60 ▼9.43
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.0496.50 ▼5.9346.85 ▲1.54

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Gist_WooCommerce\\Base\\GSTWC_Integration' not found in wp-content/plugins/gist-for-woocommerce/Gist_WooCommerce/Pages/GSTWC_Order.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gist-for-woocommerce/Gist_WooCommerce/Base/Template/settings_form.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'Gist_WooCommerce\\Base\\GSTWC_Integration' not found in wp-content/plugins/gist-for-woocommerce/Gist_WooCommerce/Base/GSTWC_Enqueue.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Gist_WooCommerce\\Base\\GSTWC_Integration' not found in wp-content/plugins/gist-for-woocommerce/Gist_WooCommerce/Base/GSTWC_Settings.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Gist_WooCommerce\\Base\\GSTWC_Integration' not found in wp-content/plugins/gist-for-woocommerce/Gist_WooCommerce/Pages/GSTWC_Customer.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Gist_WooCommerce\\Base\\GSTWC_Integration' not found in wp-content/plugins/gist-for-woocommerce/Gist_WooCommerce/Pages/GSTWC_Product.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Gist_WooCommerce\\Base\\GSTWC_Integration' not found in wp-content/plugins/gist-for-woocommerce/Gist_WooCommerce/Pages/GSTWC_ProductCategory.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Gist_WooCommerce\\Base\\GSTWC_Integration' not found in wp-content/plugins/gist-for-woocommerce/Gist_WooCommerce/Pages/GSTWC_Cart.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gist-for-woocommerce/gist-woocommerce.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
7 plugin tags: ecommerce, cart recovery, automation, cart abandonment, workflows...

gist-for-woocommerce/gist-woocommerce.php 92% from 13 tests

The main PHP script in "Gist for WooCommerce" version 1.2.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gist-for-woocommerce.php" instead of "gist-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,643 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP263481,0261,533
CSS119089
JSON20018
JavaScript1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.40
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes15.00%
Methods111
▷ Static methods109.01%
▷ Public methods6457.66%
▷ Protected methods3329.73%
▷ Private methods1412.61%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin