83% woo-sms-simple-order-notification

Code Review | Woocommerce-simple-order-notification

WordPress plugin Woocommerce-simple-order-notification scored83%from 54 tests.

About plugin

  • Plugin page: woo-sms-simple-or...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2017
  • Latest release: Oct 20, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: getjuicy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /697 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Woocommerce-simple-order-notification
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.73 ▼3.05
Dashboard /wp-admin3.32 ▲0.0145.85 ▼2.78
Posts /wp-admin/edit.php3.37 ▲0.0147.41 ▼0.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.81 ▲1.75
Media Library /wp-admin/upload.php3.24 ▲0.0140.01 ▲6.94

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 122 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Woocommerce-simple-order-notification
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.69 ▼0.981.62 ▼0.8139.67 ▼3.03
Dashboard /wp-admin2,225 ▲404.85 ▼1.04111.84 ▲8.8840.46 ▼3.27
Posts /wp-admin/edit.php2,108 ▲192.01 ▼0.0141.45 ▲1.0836.29 ▲1.17
Add New Post /wp-admin/post-new.php1,546 ▲323.05 ▲4.89645.58 ▲31.8953.90 ▲1.87
Media Library /wp-admin/upload.php1,404 ▲194.18 ▼0.0795.35 ▼4.5843.32 ▲0.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 102× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Services_Twilio_SIPListResource' not found in wp-content/plugins/woo-sms-simple-order-notification/twilio-php-master/Services/Twilio/Rest/CredentialListMappings.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/woo-sms-simple-order-notification/twilio-php-master/Services/Twilio/Rest/Sip.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/woo-sms-simple-order-notification/twilio-php-master/Services/Twilio/Rest/Domain.php:63
    • > PHP Fatal error
      Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/woo-sms-simple-order-notification/twilio-php-master/Services/Twilio/Rest/FeedbackSummary.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/woo-sms-simple-order-notification/twilio-php-master/Services/Twilio/Rest/SmsMessages.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/woo-sms-simple-order-notification/twilio-php-master/Services/Twilio/Rest/Feedback.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/woo-sms-simple-order-notification/twilio-php-master/Services/Twilio/Rest/Tokens.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/woo-sms-simple-order-notification/twilio-php-master/Services/Twilio/Rest/CredentialListMapping.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Services_Twilio_TaskRouterInstanceResource' not found in wp-content/plugins/woo-sms-simple-order-notification/twilio-php-master/Services/Twilio/Rest/TaskRouter/Task.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Services_Twilio_TaskRouterInstanceResource' not found in wp-content/plugins/woo-sms-simple-order-notification/twilio-php-master/Services/Twilio/Rest/TaskRouter/Worker.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Screenshot #1 (This screenshot shows the admin options as described in the description. ’assets/AdminOptions.png’) image not found
Please take inspiration from this readme.txt

woo-sms-simple-order-notification/ltl-simple-order-notification.php 92% from 13 tests

This is the main PHP file of "Woocommerce-simple-order-notification" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-sms-simple-order-notification.php" instead of "ltl-simple-order-notification.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,372 lines of code in 119 files:
LanguageFilesBlank linesComment linesLines of code
PHP1195491,7072,372

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.21
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes136
▷ Abstract classes107.35%
▷ Concrete classes12692.65%
▷ Final classes00.00%
Methods207
▷ Static methods188.70%
▷ Public methods17785.51%
▷ Protected methods2713.04%
▷ Private methods31.45%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
asset/AdminOptions.png53.75KB14.92KB▼ 72.23%