84% wc-support-system

Code Review | Woocommerce Support System

WordPress plugin Woocommerce Support System scored84%from 54 tests.

About plugin

  • Plugin page: wc-support-system
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2018
  • Latest release: Sep 20, 2023
  • Number of updates: 34
  • Update frequency: every 58.7 days
  • Top authors: ghera74 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /6,225 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼15.56ms] Passed 4 tests

A check of server-side resources used by Woocommerce Support System
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.71 ▲3.74
Dashboard /wp-admin3.31 ▼0.0448.75 ▼17.00
Posts /wp-admin/edit.php3.36 ▲0.0050.93 ▼0.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.25 ▼42.45
Media Library /wp-admin/upload.php3.23 ▲0.0033.78 ▼2.70

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce Support System
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.38 ▼0.221.76 ▲0.2443.42 ▲3.83
Dashboard /wp-admin2,215 ▲475.56 ▼0.1285.76 ▼45.4239.84 ▼19.03
Posts /wp-admin/edit.php2,120 ▲232.01 ▲0.0736.39 ▼0.1533.54 ▲0.88
Add New Post /wp-admin/post-new.php1,541 ▼123.05 ▲0.19677.64 ▲56.7854.51 ▲1.19
Media Library /wp-admin/upload.php1,420 ▲204.19 ▲0.0199.69 ▼12.0044.75 ▼1.84

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Almost there! Just fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-support-system/includes/class-wss-table.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-support-system/includes/class-wss-table.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-support-system/includes/class-wc-support-system.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Ilghera_Notice' not found in wp-content/plugins/wc-support-system/includes/ilghera-notice/extension.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-support-system/includes/ilghera-notice/class-ilghera-notice.php:214
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wc-support-system/includes/class-wss-table.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: thread, woocommerce, support, orders, ecommerce...

wc-support-system/wc-support-system.php Passed 13 tests

The entry point to "Woocommerce Support System" version 1.2.1 is a PHP file that has certain tags in its header comment area
87 characters long description:
Give support to your WooComerce customers with this fast and easy to use ticket system.

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
Good job! No executable or dangerous file extensions detected34,822 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript421,8122,83912,362
CSS10105798,181
YAML274445,032
HTML1467234,958
PHP145658041,859
Markdown72540961
Sass19632589
PO File1110134287
JSON500284
JSX1347205
SVG24079
Vuejs Component12025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity29.38
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods106
▷ Static methods2725.47%
▷ Public methods10296.23%
▷ Protected methods00.00%
▷ Private methods43.77%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.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
11 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/dustbin-admin.png0.54KB0.30KB▼ 44.67%
js/tzCheckbox/jquery.tzCheckbox/background.png4.96KB2.59KB▼ 47.82%
vendor/harvesthq/chosen/chosen-sprite.png0.53KB0.88KB0.00%
vendor/harvesthq/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
js/tzCheckbox/img/line_bg.png0.26KB0.23KB▼ 9.16%