10% massms-for-woocommerce

Code Review | Massms for WooCommerce

WordPress plugin Massms for WooCommerce scored 10% from 53 tests.

About plugin

  • Plugin page: massms-for-woocom...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 5.8.1
  • First release: Oct 5, 2021
  • Latest release: Oct 5, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: massms (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 55 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/massms-for-woocommerce/massms.php+35
    require_once(include/Massms.php): failed to open stream: No such file or directory

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

Server-side resources used by Massms for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1133.11 ▲13.89
Dashboard /wp-admin3.06 ▲0.0049.61 ▲4.93
Posts /wp-admin/edit.php3.11 ▲0.0046.41 ▲8.22
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.93 ▼1,098.45
Media Library /wp-admin/upload.php3.00 ▼0.0133.28 ▼3.42

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 162 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Massms for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,649 ▲6715.83 ▼0.027.77 ▲0.2048.07 ▼1.46
Dashboard /wp-admin2,927 ▲775.95 ▲0.14158.63 ▲22.04108.89 ▲9.47
Posts /wp-admin/edit.php2,706 ▼02.70 ▲0.0167.43 ▼0.35104.29 ▲10.19
Add New Post /wp-admin/post-new.php1,851 ▲20017.72 ▲0.25363.74 ▼10.50106.96 ▼7.41
Media Library /wp-admin/upload.php1,775 ▲35.01 ▲0.00173.42 ▲28.61110.88 ▼0.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: woocmmerce, sms

massms-for-woocommerce/massms.php 69% from 13 tests

The main file in "Massms for WooCommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • 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
  • Main file name: The principal plugin file should be the same as the plugin slug ("massms-for-woocommerce.php" instead of "massms.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin42,494 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
CSS131,2119425,125
JavaScript862,0541,56010,224
HTML1505,586
JSON1001,388
Sass190150
PHP171421

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/massms-logo.png5.29KB2.51KB▼ 52.51%