73% xoxzo-sms-voice-notification-for-woocommerce

Code Review | Xoxzo - SMS and voice notification plugin for WooCommerce

WordPress plugin Xoxzo - SMS and voice notification plugin for WooCommerce scored 73% from 54 tests.

About plugin

  • Plugin page: xoxzo-sms-voice-n...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: Mar 27, 2020
  • Number of updates: 5
  • Update frequency: every 2.0 days
  • Top authors: xoxzo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 376 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.90MB] [CPU: ▼2.82ms] Passed 4 tests

A check of server-side resources used by Xoxzo - SMS and voice notification plugin for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6340.32 ▼4.57
Dashboard /wp-admin4.30 ▲0.9953.30 ▲3.65
Posts /wp-admin/edit.php4.35 ▲0.9958.09 ▲7.13
Add New Post /wp-admin/post-new.php6.90 ▲1.0189.71 ▼16.21
Media Library /wp-admin/upload.php4.22 ▲0.9941.25 ▲5.85

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: 2 new tables, 6 new options
New tables
wp_woocommerce_xoxzo_status
wp_woocommerce_xoxzo_error
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Xoxzo - SMS and voice notification plugin for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.60 ▼0.705.50 ▲3.8738.98 ▼1.93
Dashboard /wp-admin2,213 ▲254.85 ▼0.05113.04 ▼2.7243.25 ▲0.10
Posts /wp-admin/edit.php2,090 ▲12.02 ▼0.0035.33 ▼7.0532.47 ▼5.39
Add New Post /wp-admin/post-new.php1,527 ▼618.33 ▼4.76649.42 ▼16.3465.69 ▲12.77
Media Library /wp-admin/upload.php1,392 ▲14.19 ▲0.01101.24 ▼2.9444.24 ▲0.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_woocommerce_xoxzo_error
    • wp_woocommerce_xoxzo_status
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/xoxzo-sms-voice-notification-for-woocommerce/public/partials/wc-xoxzo-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Screenshots: Add an image for screenshot #1 (None)
You can look at the official readme.txt

xoxzo-sms-voice-notification-for-woocommerce/start.php 85% from 13 tests

The main PHP script in "Xoxzo - SMS and voice notification plugin for WooCommerce" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("xoxzo-sms-voice-notification-for-woocommerce.php" instead of "start.php")

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
Good job! No executable or dangerous file extensions detected6,191 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP326091,2976,085
Markdown129078
JSON17022
JavaScript24546
CSS2080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.68
▷ Minimum class complexity1.00
▷ Maximum class complexity112.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods176
▷ Static methods4726.70%
▷ Public methods13677.27%
▷ Protected methods00.00%
▷ Private methods4022.73%
Functions10
▷ Named functions330.00%
▷ Anonymous functions770.00%
Constants313
▷ Global constants20.64%
▷ Class constants31199.36%
▷ Public constants311100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin