84% wooms

Code Review | WooMS

WordPress plugin WooMS scored84%from 54 tests.

About plugin

  • Plugin page: wooms
  • Plugin version: 9.8
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 7, 2017
  • Latest release: Nov 27, 2023
  • Number of updates: 127
  • Update frequency: every 18.1 days
  • Top authors: casepress (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

700+ active /20,792 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.29ms] Passed 4 tests

Server-side resources used by WooMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0643.73 ▲1.08
Dashboard /wp-admin3.36 ▲0.0646.94 ▼0.86
Posts /wp-admin/edit.php3.41 ▲0.0648.47 ▼1.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0690.07 ▼3.74
Media Library /wp-admin/upload.php3.28 ▲0.0632.60 ▲0.53

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooMS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.25 ▼0.461.64 ▼0.1536.36 ▼7.10
Dashboard /wp-admin2,195 ▲185.58 ▼0.0994.80 ▲0.7843.73 ▼2.73
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0338.75 ▲2.9235.53 ▲4.85
Add New Post /wp-admin/post-new.php1,526 ▼1923.26 ▼1.79601.02 ▼15.9948.71 ▼9.89
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0299.18 ▲2.9441.44 ▲1.26

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooMS\\add_filter() in wp-content/plugins/wooms/includes/OrderStatusesFromSite.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooMS\\get_option() in wp-content/plugins/wooms/includes/SiteHealthWebHooks.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooMS\\ProductsImage\\add_action() in wp-content/plugins/wooms/includes/ProductsImage.php:11
    • > PHP Fatal error
      Trait 'WooMS\\MSImages' not found in wp-content/plugins/wooms/includes/ProductVariableImage.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooMS\\ProductsHider\\add_action() in wp-content/plugins/wooms/includes/ProductsHiding.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooMS\\add_action() in wp-content/plugins/wooms/includes/MenuTools.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooMS\\ProductsScheduler\\add_action() in wp-content/plugins/wooms/includes/ProductsScheduler.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooMS\\add_action() in wp-content/plugins/wooms/includes/OrderUpdateFromMoySklad.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooMS\\add_action() in wp-content/plugins/wooms/includes/Logger.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WooMS\\AbstractWalker' not found in wp-content/plugins/wooms/includes/ProductGrouped.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: sync, integration, moysklad, woocommerce

wooms/wooms.php 85% from 13 tests

The entry point to "WooMS" version 9.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "7.0")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin6,789 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP432,2561,3586,761
Markdown46021
YAML1004
CSS1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.28
▷ Minimum class complexity1.00
▷ Maximum class complexity105.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces10
Interfaces0
Traits1
Classes31
▷ Abstract classes13.23%
▷ Concrete classes3096.77%
▷ Final classes310.00%
Methods279
▷ Static methods279100.00%
▷ Public methods279100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions116
▷ Named functions5950.86%
▷ Anonymous functions5749.14%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.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
There were not PNG files found in your plugin