90% sms-assistent-wc

Code Review | SMS-assistent for WooCommerce

WordPress plugin SMS-assistent for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: sms-assistent-wc
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: Aug 3, 2020
  • Number of updates: 17
  • Update frequency: every 0.8 days
  • Top authors: smsassistent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /441 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by SMS-assistent for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.78 ▲2.40
Dashboard /wp-admin3.31 ▲0.0044.38 ▼3.91
Posts /wp-admin/edit.php3.36 ▲0.0047.12 ▼1.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.22 ▼40.52
Media Library /wp-admin/upload.php3.23 ▲0.0034.15 ▲1.09

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by SMS-assistent for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.145.40 ▲3.7044.54 ▲2.59
Dashboard /wp-admin2,206 ▲185.89 ▲0.00107.48 ▼3.9341.53 ▼6.63
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0339.39 ▼3.1336.05 ▲1.07
Add New Post /wp-admin/post-new.php1,546 ▲2618.51 ▼4.70621.51 ▲25.1061.18 ▲8.36
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0393.46 ▼10.4042.60 ▼0.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: sms, sms-assistent

sms-assistent-wc/sms-assistent-wc.php 92% from 13 tests

The main file in "SMS-assistent for WooCommerce" v. 1.0.5 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:
  • Description: The description should be shorter than 140 characters (currently 208 characters long)

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,780 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP116788211,681
PO File1434399

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity25.00
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods113
▷ Static methods43.54%
▷ Public methods8272.57%
▷ Protected methods00.00%
▷ Private methods3127.43%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin