78% shiip

Code Review | SHIIP

WordPress plugin SHIIP scored78%from 54 tests.

About plugin

  • Plugin page: shiip
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Sep 7, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 12
  • Update frequency: every 66.8 days
  • Top authors: oife (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /724 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼5.77ms] Passed 4 tests

Analyzing server-side resources used by SHIIP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2137.52 ▼3.67
Dashboard /wp-admin3.52 ▲0.2145.83 ▼8.87
Posts /wp-admin/edit.php3.64 ▲0.2746.30 ▲3.32
Add New Post /wp-admin/post-new.php6.10 ▲0.2192.25 ▼9.74
Media Library /wp-admin/upload.php3.45 ▲0.2133.67 ▼0.81

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

SHIIP: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.14 ▼0.211.83 ▲0.2140.04 ▼3.40
Dashboard /wp-admin2,195 ▲155.56 ▼0.1090.80 ▼11.8436.76 ▼5.64
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0039.85 ▼0.1340.25 ▼1.17
Add New Post /wp-admin/post-new.php1,530 ▲423.23 ▲0.17602.33 ▼52.7061.85 ▲1.82
Media Library /wp-admin/upload.php1,400 ▲34.18 ▲0.0197.26 ▲0.0343.25 ▲2.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/shiip/admin/partials/plugin-name-admin-display.php
    • > /wp-content/plugins/shiip/public/partials/plugin-name-public-display.php
  • 1× 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/shiip/includes/shiipFunctions.php:6

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

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (SHIIP under woocommerce shiiping section) image required
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

shiip/shiip.php Passed 13 tests

The primary PHP file in "SHIIP" version 1.1.1 is used by WordPress to initiate all plugin functionality
137 characters long description:
The only shipping app you will ever need for your business. You can “Shiip” with top logistics companies at half their standard rates

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 plugin1,150 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP76055471,137
Markdown2107
JavaScript24546
CSS2080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity14.25
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity5.42
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.23MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/shiip.png1.38KB1.25KB▼ 8.99%
assets/screenshot-1.png235.61KB77.08KB▼ 67.28%