84% sendlime

Code Review | SendLime

WordPress plugin SendLime scored84%from 54 tests.

About plugin

  • Plugin page: sendlime
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9
  • WordPress version: 6.3.1
  • First release: Dec 10, 2021
  • Latest release: Feb 24, 2022
  • Number of updates: 13
  • Update frequency: every 5.9 days
  • Top authors: sendlime (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /710 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 gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.74ms] Passed 4 tests

An overview of server-side resources used by SendLime
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1342.53 ▲2.03
Dashboard /wp-admin3.44 ▲0.1452.41 ▲0.76
Posts /wp-admin/edit.php3.55 ▲0.2050.61 ▲0.04
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.61 ▼16.58
Media Library /wp-admin/upload.php3.36 ▲0.1338.11 ▲0.81

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
sendlime_installed
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
sendlime_version
db_upgraded
sendlime_wc_order_notification_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for SendLime
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▼0.201.70 ▼0.3743.83 ▼0.29
Dashboard /wp-admin2,189 ▲95.54 ▼0.1187.30 ▼3.1239.74 ▼6.26
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0234.69 ▼2.7435.97 ▲1.55
Add New Post /wp-admin/post-new.php1,536 ▲1017.98 ▼5.18618.17 ▼51.5071.50 ▲5.92
Media Library /wp-admin/upload.php1,400 ▼34.25 ▲0.0798.58 ▼0.9043.02 ▼3.95

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
  • The uninstall procedure has failed, leaving 9 options in the database
    • can_compress_scripts
    • db_upgraded
    • sendlime_wc_order_notification_settings
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • sendlime_version
    • sendlime_installed

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'SendLime\\SendLime\\Admin\\WCOrderNotification' not found in wp-content/plugins/sendlime/includes/Admin/views/wc-order-notification.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: woocommerce, sms, order notify, update

sendlime/sendlime.php Passed 13 tests

Analyzing the main PHP file in "SendLime" version 1.1.2
86 characters long description:
SendLime lets you notify your customers about their WooCommerce order updates via SMS.

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
There were no executable files found in this plugin1,127 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP172564921,095
JSON20027
Markdown1405

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods59
▷ Static methods1932.20%
▷ Public methods5694.92%
▷ Protected methods00.00%
▷ Private methods35.08%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin