79% voyagesms

Code Review | VoyageSMS

WordPress plugin VoyageSMS scored 79% from 54 tests.

About plugin

  • Plugin page: voyagesms
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.1
  • WordPress version: 5.8.1
  • First release: Dec 18, 2019
  • Latest release: Jan 18, 2020
  • Number of updates: 8
  • Update frequency: every 4.0 days
  • Top authors: nurulhudaapon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▼0.90MB] [CPU: ▼174.83ms] Passed 4 tests

An overview of server-side resources used by VoyageSMS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.0925.25 ▼9.09
Dashboard /wp-admin2.75 ▼0.3122.94 ▼23.06
Posts /wp-admin/edit.php2.75 ▼0.3719.38 ▼34.94
Add New Post /wp-admin/post-new.php2.75 ▼2.6922.38 ▼624.79
Media Library /wp-admin/upload.php2.75 ▼0.2516.23 ▼16.53
Voyage Setting /wp-admin/options-general.php?page=voyage-setting-page2.7520.60

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for VoyageSMS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,700 ▲6316.46 ▲0.8819.19 ▲10.2051.07 ▲3.24
Dashboard /wp-admin2,972 ▲385.89 ▼0.03147.24 ▼0.51115.04 ▲6.45
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0161.17 ▼2.6281.51 ▼13.15
Add New Post /wp-admin/post-new.php1,875 ▲19219.17 ▲0.49367.56 ▼20.01112.05 ▲7.04
Media Library /wp-admin/upload.php1,812 ▲25.01 ▼0.03157.27 ▲9.00122.94 ▲8.07
Voyage Setting /wp-admin/options-general.php?page=voyage-setting-page1,0322.0953.1274.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+303
    call_user_func_array() expects parameter 1 to be a valid callback, function 'voyage_plugin_menu' not found or invalid function name

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=voyage-setting-page
    • > Warning in wp-includes/class-wp-hook.php+303
    call_user_func_array() expects parameter 1 to be a valid callback, function 'voyage_plugin_menu' not found or invalid function name
    • > GET request to /wp-admin/options-general.php?page=voyage-setting-page
    • > Notice in wp-content/plugins/voyagesms/voyagesms.php+68
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/voyagesms/voyagesms.php:12

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 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
3 plugin tags: voyagesms, sms marketing, voyage sms

voyagesms/voyagesms.php Passed 13 tests

"VoyageSMS" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
This is a plugin for existing VoyageSMS clients on WooCommerce to add required scripts for modal display and purchase tracking.

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
Good job! No executable or dangerous file extensions detected93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101265
Markdown114028

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.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin