89% mimo-woocommerce-order-tracking

Code Review | MIMO Woocommerce Order Tracking

WordPress plugin MIMO Woocommerce Order Tracking scored89%from 54 tests.

About plugin

  • Plugin page: mimo-woocommerce-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2017
  • Latest release: Mar 9, 2019
  • Number of updates: 31
  • Update frequency: every 23.3 days
  • Top authors: surakrai (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active /8,952 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by MIMO Woocommerce Order Tracking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.23 ▲4.33
Dashboard /wp-admin3.34 ▲0.0450.73 ▼0.60
Posts /wp-admin/edit.php3.46 ▲0.1054.34 ▲3.69
Add New Post /wp-admin/post-new.php5.94 ▲0.06108.10 ▲18.03
Media Library /wp-admin/upload.php3.26 ▲0.0340.37 ▲2.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for MIMO Woocommerce Order Tracking
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.36 ▼0.061.96 ▲0.0243.51 ▼1.69
Dashboard /wp-admin2,214 ▲435.74 ▲0.0891.92 ▼10.9541.57 ▼2.32
Posts /wp-admin/edit.php2,123 ▲232.27 ▲0.2640.88 ▲2.1837.10 ▲4.36
Add New Post /wp-admin/post-new.php1,543 ▲1523.73 ▲0.41685.51 ▼17.5864.36 ▲8.37
Media Library /wp-admin/upload.php1,422 ▲224.31 ▲0.0799.13 ▼6.7747.92 ▼2.44

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • mimo_provider_list
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: delivery, order shipping, track email, woocommerce

mimo-woocommerce-order-tracking/mimo-woocommerce-order-tracking.php 85% from 13 tests

"MIMO Woocommerce Order Tracking" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0.1" instead of "3.0.0")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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 plugin687 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1160149394
JavaScript1698141
CSS12081
PO File1335971

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin