74% playsms-woocommerce

Code Review | PlaySMS - Woocommerce

WordPress plugin PlaySMS - Woocommerce scored74%from 54 tests.

About plugin

  • Plugin page: playsms-woocommerce
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Feb 20, 2018
  • Latest release: Feb 26, 2018
  • Number of updates: 30
  • Update frequency: every 0.2 days
  • Top authors: appworld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /605 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by PlaySMS - Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.16 ▼7.77
Dashboard /wp-admin3.31 ▼0.0442.89 ▼19.30
Posts /wp-admin/edit.php3.36 ▲0.0045.10 ▼3.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.29 ▼3.02
Media Library /wp-admin/upload.php3.23 ▲0.0032.14 ▲1.95

Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for PlaySMS - Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.73 ▲0.351.76 ▼0.4439.05 ▼3.94
Dashboard /wp-admin2,206 ▲185.88 ▲0.0699.07 ▼17.8937.43 ▼8.44
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0140.79 ▲3.5935.16 ▲1.83
Add New Post /wp-admin/post-new.php1,528 ▲522.93 ▼0.51657.81 ▼7.9748.72 ▼5.71
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.0196.52 ▼10.0640.32 ▼2.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-includes/option.php+2520
    Trying to access array offset on value of type null
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/playsms-woocommerce/classes/PlaySMS_SenderFields.php
    • > /wp-content/plugins/playsms-woocommerce/playSMS.php
    • > /wp-content/plugins/playsms-woocommerce/classes/PlaySMS_SendSms.php

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("playsms.pl")
You can look at the official readme.txt

playsms-woocommerce/playSMS.php 92% from 13 tests

"PlaySMS - Woocommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("playsms-woocommerce.php" instead of "playSMS.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,546 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4333331,165
JavaScript1415381

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.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
No PNG files were detected