83% inspiring-shipment-tracking

Code Review | INSPIRING Shipment Tracking

WordPress plugin INSPIRING Shipment Tracking scored83%from 54 tests.

About plugin

  • Plugin page: inspiring-shipmen...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2019
  • Latest release: Mar 16, 2019
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: inspiringitsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /789 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by INSPIRING Shipment Tracking
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.80 ▲0.31
Dashboard /wp-admin3.35 ▲0.0447.62 ▼5.18
Posts /wp-admin/edit.php3.40 ▲0.0450.17 ▼2.89
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.04 ▼11.83
Media Library /wp-admin/upload.php3.27 ▲0.0438.98 ▲3.96

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/inspiring-shipment-tracking/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for INSPIRING Shipment Tracking
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5913.13 ▼1.461.87 ▼0.0239.52 ▼12.56
Dashboard /wp-admin2,226 ▲234.88 ▼0.04105.62 ▼3.4140.02 ▼1.69
Posts /wp-admin/edit.php2,105 ▲52.04 ▲0.0233.68 ▼5.0236.60 ▼1.19
Add New Post /wp-admin/post-new.php1,545 ▼523.22 ▲0.17685.79 ▼11.9267.30 ▲11.32
Media Library /wp-admin/upload.php1,402 ▲24.28 ▲0.04100.93 ▼8.6244.30 ▼1.06

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

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inspiring-shipment-tracking/shortcode.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inspiring-shipment-tracking/admin/order.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

inspiring-shipment-tracking/track.php 92% from 13 tests

Analyzing the main PHP file in "INSPIRING Shipment Tracking" version 1.0
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("inspiring-shipment-tracking.php" instead of "track.php")

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
No dangerous file extensions were detected227 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33416185
JavaScript18042

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity5.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 files were detected