83% wc-instant-shop

Code Review | Instant Shop for WooCommerce

WordPress plugin Instant Shop for WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: wc-instant-shop
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2021
  • Latest release: Aug 10, 2023
  • Number of updates: 21
  • Update frequency: every 33.0 days
  • Top authors: PressTigers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 782 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
Install script ran successfully

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

This is a short check of server-side resources used by Instant Shop for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.03 ▼1.99
Dashboard /wp-admin3.34 ▲0.0446.00 ▼1.87
Posts /wp-admin/edit.php3.39 ▲0.0347.70 ▲0.88
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.40 ▼17.51
Media Library /wp-admin/upload.php3.26 ▲0.0334.65 ▼0.43

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
isfw-one-page-checkout
widget_theysaidso_widget
isfw-processing
widget_recent-posts
widget_recent-comments
db_upgraded
isfw-completed
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Instant Shop for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.21 ▼1.461.67 ▲0.0741.44 ▼2.54
Dashboard /wp-admin2,206 ▲174.84 ▼0.13108.49 ▲0.5038.85 ▼0.88
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0639.27 ▼2.2434.02 ▼2.01
Add New Post /wp-admin/post-new.php1,528 ▲1423.14 ▲5.74646.54 ▼14.0757.14 ▼0.56
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0197.53 ▼7.0841.96 ▼0.30

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
  • The uninstall procedure has failed, leaving 9 options in the database
    • isfw-one-page-checkout
    • isfw-completed
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • isfw-processing
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
  • 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/wc-instant-shop/public/class-instant-shop-for-woocommerce-shop.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-instant-shop/admin/class-instant-shop-for-woocommerce-shop-tab.php:22

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 Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: order again, order again for woocommerce, instant shop, single page checkout for woocommerce, one page checkout

wc-instant-shop/instant-shop-for-woocommerce.php 77% from 13 tests

Analyzing the main PHP file in "Instant Shop for WooCommerce" version 1.0.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-instant-shop.php" instead of "instant-shop-for-woocommerce.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)

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
Good job! No executable or dangerous file extensions detected898 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12172668526
CSS1100230
JavaScript12211142

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.67
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods3788.10%
▷ Protected methods00.00%
▷ Private methods511.90%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin