84% mdsco-sms

Code Review | MDSCO SMS

WordPress plugin MDSCO SMS scored84%from 54 tests.

About plugin

  • Plugin page: mdsco-sms
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2021
  • Latest release: Jun 28, 2022
  • Number of updates: 8
  • Update frequency: every 33.3 days
  • Top authors: jamesblackvn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.13ms] Passed 4 tests

This is a short check of server-side resources used by MDSCO SMS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1535.83 ▼7.91
Dashboard /wp-admin3.46 ▲0.1545.80 ▼10.02
Posts /wp-admin/edit.php3.57 ▲0.2147.76 ▲3.62
Add New Post /wp-admin/post-new.php6.04 ▲0.1585.99 ▼2.22
Media Library /wp-admin/upload.php3.38 ▲0.1537.85 ▲5.96

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 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

Checking browser requirements for MDSCO SMS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼0.951.76 ▼0.5141.25 ▼12.65
Dashboard /wp-admin2,203 ▲185.83 ▼0.05102.07 ▼13.8940.45 ▼2.08
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0635.34 ▼0.7430.55 ▼4.37
Add New Post /wp-admin/post-new.php1,542 ▲918.21 ▼5.01632.92 ▼53.4954.93 ▼10.23
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.05103.84 ▼4.5144.08 ▼3.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mdsco-sms/mdsco-sms.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: sms for contact form 7, mdsco sms, woocommerce sms, sms for ninjaform, sms...

mdsco-sms/mdsco-sms.php 85% from 13 tests

This is the main PHP file of "MDSCO SMS" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: The description should be shorter than 140 characters (currently 215 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected869 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16926755
CSS10081
JavaScript10033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity94.00
▷ Minimum class complexity2.00
▷ Maximum class complexity186.00
Average method complexity7.64
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods13.57%
▷ Public methods2589.29%
▷ Protected methods00.00%
▷ Private methods310.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected