10% merch-systems-storefront

Code Review | merch.systems Storefront

WordPress plugin merch.systems Storefront scored10%from 54 tests.

About plugin

  • Plugin page: merch-systems-sto...
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Apr 7, 2020
  • Latest release: Feb 9, 2021
  • Number of updates: 28
  • Update frequency: every 11.0 days
  • Top authors: anti-design.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,109 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/merch-systems-storefront/includes/Merchsys_Store.php+2
    require_once(wp-content/plugins/merch-systems-storefront/../merch-systems/includes/Merchsys_Settings.php): failed to open stream: No such file or directory

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

Server-side resources used by merch.systems Storefront
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.84 ▼1.10
Dashboard /wp-admin3.31 ▲0.0045.79 ▼1.39
Posts /wp-admin/edit.php3.36 ▲0.0040.66 ▼5.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.14 ▼12.91
Media Library /wp-admin/upload.php3.23 ▲0.0034.13 ▼2.14

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

merch.systems Storefront: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.18 ▼1.275.41 ▲3.6041.99 ▼4.86
Dashboard /wp-admin2,206 ▲215.91 ▲1.04113.81 ▲8.7942.34 ▲1.08
Posts /wp-admin/edit.php2,089 ▲32.00 ▲0.0035.15 ▼2.5635.85 ▲5.48
Add New Post /wp-admin/post-new.php1,514 ▼517.46 ▼5.90681.21 ▲83.6060.46 ▲11.22
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.0597.12 ▼4.8941.83 ▼1.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MerchSysStore_Common_Header' not found in wp-content/plugins/merch-systems-storefront/public/includes/Shop/Header.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'MerchSysStore_Common_Base' not found in wp-content/plugins/merch-systems-storefront/public/includes/Common/Form.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'MerchSysStore_Common_Base' not found in wp-content/plugins/merch-systems-storefront/public/includes/Common/Header.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'MerchSys_Shop_Base' not found in wp-content/plugins/merch-systems-storefront/public/includes/Shop/Categories.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'MerchSysStore_Common_Base' not found in wp-content/plugins/merch-systems-storefront/public/includes/Shop/Base.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'MerchSys_Admin' not found in wp-content/plugins/merch-systems-storefront/admin/MerchsysStore_Admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'MerchSys_Shop_Base' not found in wp-content/plugins/merch-systems-storefront/public/includes/Shop/Images.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/merch-systems-storefront/includes/Merchsys_Store.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'MerchSys_Shop_Base' not found in wp-content/plugins/merch-systems-storefront/public/includes/Shop/Products.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'MerchSysStore_Common_Base' not found in wp-content/plugins/merch-systems-storefront/public/includes/Common/Field.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid plugin version format
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === merch-systems-storefront === )
The official readme.txt might help

merch-systems-storefront/merchsys-store.php 92% from 13 tests

Analyzing the main PHP file in "merch.systems Storefront" version 1.0.10
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("merch-systems-storefront.php" instead of "merchsys-store.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
Everything looks great! No dangerous files found in this plugin5,991 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP323323852,459
PO File2226263489
Mustache2100324
JavaScript321147
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity14.97
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes413.33%
▷ Concrete classes2686.67%
▷ Final classes00.00%
Methods148
▷ Static methods64.05%
▷ Public methods12886.49%
▷ Protected methods00.00%
▷ Private methods2013.51%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants104
▷ Global constants00.00%
▷ Class constants104100.00%
▷ Public constants104100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected