84% msg91-by-vasim-shaikh

Code Review | msg91 by vasim shaikh

WordPress plugin msg91 by vasim shaikh scored 84% from 54 tests.

About plugin

  • Plugin page: msg91-by-vasim-sh...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.0
  • WordPress version: 5.8.1
  • First release: Sep 18, 2019
  • Latest release: Nov 23, 2020
  • Number of updates: 9
  • Update frequency: every 48.0 days
  • Top authors: incredibledeveloperr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,143 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by msg91 by vasim shaikh
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1435.56 ▲14.09
Dashboard /wp-admin3.07 ▲0.0240.12 ▼5.12
Posts /wp-admin/edit.php3.13 ▲0.0242.89 ▼1.96
Add New Post /wp-admin/post-new.php5.44 ▲0.0193.08 ▼546.77
Media Library /wp-admin/upload.php3.02 ▲0.0230.81 ▼3.12

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 4 new options
New WordPress options
zt_msg91_country
zt_msg91_sender_name
zt_msg91_route
zt_msg91_msgtxt

Browser metrics Passed 4 tests

This is an overview of browser requirements for msg91 by vasim shaikh
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,843 ▲24716.37 ▲0.4515.17 ▲6.9873.55 ▲27.81
Dashboard /wp-admin2,987 ▲566.03 ▲0.01130.70 ▼9.54105.31 ▼3.38
Posts /wp-admin/edit.php2,753 ▲142.68 ▼0.0263.03 ▼1.8978.15 ▼12.01
Add New Post /wp-admin/post-new.php2,098 ▲22616.12 ▼2.92363.31 ▲4.75100.65 ▼7.50
Media Library /wp-admin/upload.php1,824 ▲174.99 ▼0.01149.40 ▼8.32108.18 ▼11.51

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 4 options
    • zt_msg91_route
    • zt_msg91_sender_name
    • zt_msg91_msgtxt
    • zt_msg91_country

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/msg91-by-vasim-shaikh/admin/partials/msg91-by-vasim-shaikh-admin-display.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/msg91-by-vasim-shaikh/public/partials/msg91-by-vasim-shaikh-public-display.php:21

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 Passed 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
7 plugin tags: register, subscribe, msg, message, otp...

msg91-by-vasim-shaikh/msg91-by-vasim-shaikh.php Passed 13 tests

"msg91 by vasim shaikh" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
133 characters long description:
If you’ve ever wanted to add text messaging functionality to your website or app, MSG91 is one of the best solutions on the market.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected608 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP12200560328
CSS34724218
JavaScript5146141
SVG10121

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.57
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2076.92%
▷ Protected methods00.00%
▷ Private methods623.08%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin