83% mnotifysms-for-woo

Code Review | mNotifySMS WooCommerce

WordPress plugin mNotifySMS WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: mnotifysms-for-woo
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5.0
  • WordPress version: 6.3.1
  • First release: Nov 12, 2018
  • Latest release: Sep 22, 2020
  • Number of updates: 6
  • Update frequency: every 113.5 days
  • Top authors: heophilus020 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,061 total downloads

Benchmarks

Plugin footprint 83% 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.24MB] [CPU: ▼0.55ms] Passed 4 tests

Server-side resources used by mNotifySMS WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1944.48 ▲0.06
Dashboard /wp-admin3.62 ▲0.3252.47 ▲0.41
Posts /wp-admin/edit.php3.67 ▲0.3259.37 ▲12.27
Add New Post /wp-admin/post-new.php6.12 ▲0.2391.97 ▼5.80
Media Library /wp-admin/upload.php3.46 ▲0.2342.19 ▲3.12
MnotifySMS WooCommerce /wp-admin/options-general.php?page=mnotifysms-woocoommerce-setting3.4638.31

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2,251 new files
Database: no new tables, 9 new options
New WordPress options
mnotifysms_setting
widget_theysaidso_widget
customer_setting
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
admin_setting
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for mNotifySMS WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲18615.13 ▲0.781.94 ▲0.1443.32 ▼1.03
Dashboard /wp-admin2,356 ▲1826.37 ▲0.70117.85 ▲25.7141.07 ▼0.83
Posts /wp-admin/edit.php2,278 ▲1783.49 ▲1.4757.86 ▲20.1034.76 ▼4.53
Add New Post /wp-admin/post-new.php1,542 ▲1423.32 ▲0.19624.03 ▼36.1635.48 ▼28.66
Media Library /wp-admin/upload.php1,415 ▲124.21 ▼0.0285.50 ▼11.6043.41 ▲0.04
MnotifySMS WooCommerce /wp-admin/options-general.php?page=mnotifysms-woocoommerce-setting1,2673.3947.4430.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 9 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • admin_setting
    • customer_setting
    • widget_theysaidso_widget
    • mnotifysms_setting

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
Good news, no errors were detected

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
The following issues need your attention
  • 58× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mnotifysms-for-woo/lib/lp/Tests/libphonenumber/Tests/core/ExampleNumbersTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mnotifysms-for-woo/lib/lp/Tests/libphonenumber/Tests/Issues/Issue23Test.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mnotifysms-for-woo/lib/lp/Tests/libphonenumber/Tests/Issues/LocaleTest.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'libphonenumber\\MatcherAPIInterface' not found in wp-content/plugins/mnotifysms-for-woo/lib/lp/src/libphonenumber/RegexBasedMatcher.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Console\\Application' not found in wp-content/plugins/mnotifysms-for-woo/lib/lp/build/libphonenumber/buildtools/BuildApplication.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mnotifysms-for-woo/lib/lp/Tests/libphonenumber/Tests/core/PhoneNumberMatchTest.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mnotifysms-for-woo/lib/lp/Tests/libphonenumber/Tests/core/ShortNumberUtilTest.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mnotifysms-for-woo/lib/lp/Tests/libphonenumber/Tests/core/PhoneMetadataTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mnotifysms-for-woo/lib/lp/Tests/libphonenumber/Tests/core/PhoneNumberUtilTest.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mnotifysms-for-woo/lib/lp/Tests/libphonenumber/Tests/core/PhoneNumberTest.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (mNotifySMS Settings), #2 (Vendor Settings), #3 (Customer Settings)
Please take inspiration from this readme.txt

mnotifysms-for-woo/mnotifysms-woocommerce.php 77% from 13 tests

The primary PHP file in "mNotifySMS WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("mnotifysms-for-woo.php" instead of "mnotifysms-woocommerce.php")
  • Domain Path: The domain path folder does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin624,925 lines of code in 2,239 files:
LanguageFilesBlank linesComment linesLines of code
PHP2,2305,71920,846624,302
Ant1360187
Markdown1750183
JSON210145
YAML28150
JavaScript11029
XML13124
diff1085

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity13.70
▷ Minimum class complexity1.00
▷ Maximum class complexity369.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces14
Interfaces3
Traits0
Classes99
▷ Abstract classes11.01%
▷ Concrete classes9898.99%
▷ Final classes00.00%
Methods1,109
▷ Static methods11710.55%
▷ Public methods95385.93%
▷ Protected methods877.84%
▷ Private methods696.22%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants181
▷ Global constants00.00%
▷ Class constants181100.00%
▷ Public constants181100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin