10% woo-mezco-sms

Code Review | Wocommerce - Mezco SMS

WordPress plugin Wocommerce - Mezco SMS scored10%from 54 tests.

About plugin

  • Plugin page: woo-mezco-sms
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2019
  • Latest release: Jun 26, 2019
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: adensoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,592 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory

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

A check of server-side resources used by Wocommerce - Mezco SMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.09 ▼4.64
Dashboard /wp-admin3.31 ▼0.0448.90 ▼17.17
Posts /wp-admin/edit.php3.36 ▲0.0050.02 ▼0.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.81 ▼22.93
Media Library /wp-admin/upload.php3.23 ▲0.0040.59 ▲3.27

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Wocommerce - Mezco SMS: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.17 ▲0.191.74 ▼0.1740.42 ▼1.52
Dashboard /wp-admin2,195 ▲185.61 ▼0.0488.40 ▼11.5941.23 ▲0.37
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0139.19 ▲1.6934.38 ▼1.54
Add New Post /wp-admin/post-new.php1,526 ▼023.35 ▲0.28688.39 ▲9.7969.03 ▲10.81
Media Library /wp-admin/upload.php1,403 ▲34.18 ▲0.07102.80 ▼7.6243.69 ▼1.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 | 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
Please fix the following
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woo-mezco-sms/includes/admin/funciones-formulario.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/woo-mezco-sms/includes/admin/funciones-mezco.php:14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woo-mezco-sms/includes/admin/funciones-formulario.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woo-mezco-sms/includes/admin/funciones-formulario.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woo-mezco-sms/includes/admin/funciones-formulario.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-mezco-sms/includes/cuadro-informacion.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-mezco-sms/includes/formulario.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-mezco-sms/includes/admin/funciones-formulario.php:33
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woo-mezco-sms/includes/admin/funciones-formulario.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 39 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (Screenshot of Wocommerce - Mezco SMS.)
Please take inspiration from this readme.txt

woo-mezco-sms/mezco-sms.php 85% from 13 tests

This is the main PHP file of "Wocommerce - Mezco SMS" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 279 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-mezco-sms.php" instead of "mezco-sms.php")

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
Success! There were no dangerous files found in this plugin3,104 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP8112971,693
CSS31123783
SVG200270
PO File191120265
Markdown137093

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
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
Namespaces0
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/twizo.png22.07KB11.98KB▼ 45.73%