68% shipit

Code Review | Shipit

WordPress plugin Shipit scored68%from 54 tests.

About plugin

  • Plugin page: shipit
  • Plugin version: 8.11.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 6.3.1
  • First release: Jul 15, 2019
  • Latest release: Nov 23, 2023
  • Number of updates: 105
  • Update frequency: every 15.2 days
  • Top authors: franciscoarenasp (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /26,415 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.83MB] [CPU: ▲1.39ms] Passed 4 tests

A check of server-side resources used by Shipit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.28 ▲0.8142.18 ▲0.14
Dashboard /wp-admin4.21 ▲0.8658.89 ▼5.98
Posts /wp-admin/edit.php4.27 ▲0.9060.24 ▲10.50
Add New Post /wp-admin/post-new.php6.74 ▲0.8498.97 ▲0.90
Media Library /wp-admin/upload.php4.05 ▲0.8142.41 ▲12.21

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 79 new files
Database: 4 new tables, 9 new options
New tables
wp_shipit_emergency_rates
wp_user_shipit
wp_shipit
wp_shipit_rates_request
New WordPress options
widget_recent-posts
db_upgraded
shipit_token
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
shipit_account_country
theysaidso_admin_options
shipit_user

Browser metrics Passed 4 tests

Checking browser requirements for Shipit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,048 ▲28615.08 ▲0.696.73 ▲5.0543.05 ▼0.39
Dashboard /wp-admin2,352 ▲1756.38 ▲0.74121.20 ▲20.18102.10 ▲58.24
Posts /wp-admin/edit.php2,308 ▲2083.54 ▲1.5848.70 ▲8.3864.02 ▲30.09
Add New Post /wp-admin/post-new.php1,556 ▲1123.21 ▼2.10631.59 ▼20.47173.12 ▲115.41
Media Library /wp-admin/upload.php1,438 ▲384.30 ▲0.0983.51 ▼22.3278.69 ▲34.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_shipit_emergency_rates
    • wp_shipit
    • wp_shipit_rates_request
    • wp_user_shipit
  • Zombie WordPress options detected upon uninstall: 9 options
    • shipit_user
    • widget_recent-posts
    • shipit_token
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • shipit_account_country
    • theysaidso_admin_options

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

SRP 0% from 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
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shipit/shipit.php
    • > /wp-content/plugins/shipit/src/shipit-settings.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shipit/src/cron_jobs.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipit/src/bulk_actions.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/shipit/src/shipit_service/setting.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/shipit/src/shipit_service/setting.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shipit/src/shipit_service/setting.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipit/src/webhook.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shipit/src/auther.php:22

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Credential Entry page `/ src / images / screenshot-1.png`), #2 (Field cotizador messengers `/ src / images / screenshot-2.png`)
You can take inspiration from this readme.txt

shipit/shipit.php Passed 13 tests

The main file in "Shipit" v. 8.11.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
35 characters long description:
Shipit Calculator Shipping couriers

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
There were no executable files found in this plugin4,693 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP42469724,647
JavaScript21026
CSS10020

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.08
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes00.00%
▷ Concrete classes38100.00%
▷ Final classes00.00%
Methods275
▷ Static methods103.64%
▷ Public methods27098.18%
▷ Protected methods00.00%
▷ Private methods51.82%
Functions58
▷ Named functions5391.38%
▷ Anonymous functions58.62%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
29 PNG files occupy 0.69MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/images/despacho normal a domicilio.png5.05KB2.60KB▼ 48.44%
src/images/chilepost.png73.10KB23.34KB▼ 68.08%
src/images/recibelo.png16.82KB6.59KB▼ 60.80%
src/images/favicon.png2.35KB0.61KB▼ 74.14%
src/images/screenshot-1.png38.82KB11.95KB▼ 69.21%