83% movider-sms-notifications

Code Review | Movider SMS Notifications

WordPress plugin Movider SMS Notifications scored83%from 54 tests.

About plugin

  • Plugin page: movider-sms-notif...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.14-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 25, 2020
  • Latest release: Jun 25, 2020
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: movider (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /481 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: ▼11.29MB] [CPU: ▼2,327,623.28ms] Passed 4 tests

A check of server-side resources used by Movider SMS Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0042.81 ▼4.17
Dashboard /wp-admin3.35 ▼45.1554.31 ▼9,310,432.70
Posts /wp-admin/edit.php3.40 ▲0.0056.15 ▲5.52
Add New Post /wp-admin/post-new.php5.93 ▲0.0087.08 ▼56.34
Media Library /wp-admin/upload.php3.27 ▲0.0041.17 ▲0.08

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Movider SMS Notifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.12 ▼0.101.74 ▼0.1043.56 ▼1.82
Dashboard /wp-admin2,195 ▲155.58 ▼0.0886.20 ▼12.4639.99 ▼12.40
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0336.16 ▼1.1636.99 ▲1.83
Add New Post /wp-admin/post-new.php1,526 ▼323.50 ▲0.37688.12 ▼2.2552.54 ▲0.06
Media Library /wp-admin/upload.php1,400 ▲34.19 ▲0.04112.63 ▲8.6748.70 ▲5.10

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/movider-sms-notifications/includes/admin/wmsn-guide-template.php:5

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 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: sms notification plugin

movider-sms-notifications/woo-movider-sms-notifications.php 77% from 13 tests

The principal PHP file in "Movider SMS Notifications" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("movider-sms-notifications.php" instead of "woo-movider-sms-notifications.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin2,303 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP88111,0641,798
CSS356325
JavaScript26630179
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity24.00
▷ Minimum class complexity10.00
▷ Maximum class complexity55.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods103
▷ Static methods2827.18%
▷ Public methods7774.76%
▷ Protected methods1110.68%
▷ Private methods1514.56%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants535.71%
▷ Class constants964.29%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/admin/5754242-small-logoMoviderW.png6.66KB4.62KB▼ 30.65%
assets/images/admin/movider-notification-settings1.png32.98KB14.95KB▼ 54.67%
assets/images/admin/movider-connection-settings.png17.18KB8.87KB▼ 48.39%
assets/images/admin/circuits.png15.10KB2.65KB▼ 82.48%
assets/images/admin/movider-order-notes-sms.png9.74KB5.57KB▼ 42.84%