89% gsmtasks-integration

Code Review | Order Shipping GSMTasks Management Route Optimization

WordPress plugin Order Shipping GSMTasks Management Route Optimization scored 89% from 54 tests.

About plugin

  • Plugin page: gsmtasks-integration
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2021
  • Latest release: Oct 4, 2021
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: gsmtasks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 256 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.25ms] Passed 4 tests

An overview of server-side resources used by Order Shipping GSMTasks Management Route Optimization
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0447.30 ▲5.30
Dashboard /wp-admin3.40 ▲0.1070.22 ▲17.81
Posts /wp-admin/edit.php3.44 ▲0.0849.77 ▼10.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.24 ▼10.88
Media Library /wp-admin/upload.php3.24 ▲0.0237.27 ▲3.20

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Order Shipping GSMTasks Management Route Optimization
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.27 ▼1.361.78 ▼0.1744.16 ▼2.76
Dashboard /wp-admin2,203 ▲125.84 ▼0.04100.28 ▼8.0042.94 ▲1.30
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0141.74 ▼4.1734.99 ▼8.60
Add New Post /wp-admin/post-new.php1,514 ▼017.67 ▲0.16704.50 ▲53.6863.48 ▲6.90
Media Library /wp-admin/upload.php1,391 ▼04.15 ▼0.0798.55 ▲0.8442.03 ▼0.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: shipping, delivery

gsmtasks-integration/tasks-com-integration.php 77% from 13 tests

This is the main PHP file of "Order Shipping GSMTasks Management Route Optimization" 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:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.6" instead of "5.0.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("gsmtasks-integration.php" instead of "tasks-com-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected445 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6109226394
PO File1192351

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods1381.25%
▷ Protected methods16.25%
▷ Private methods212.50%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin