84% shipink

Code Review | Shipink

WordPress plugin Shipink scored84%from 54 tests.

About plugin

  • Plugin page: shipink
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2023
  • Latest release: Nov 23, 2023
  • Number of updates: 10
  • Update frequency: every 32.3 days
  • Top authors: shipink (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /780 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.48ms] Passed 4 tests

Analyzing server-side resources used by Shipink
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0934.39 ▼7.65
Dashboard /wp-admin3.39 ▲0.0844.99 ▼3.85
Posts /wp-admin/edit.php3.50 ▲0.1450.23 ▲0.04
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.82 ▼10.45
Media Library /wp-admin/upload.php3.31 ▲0.0835.69 ▲0.02
Shipink /wp-admin/admin.php?page=wc-shipink3.2832.87

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shipink
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14013.74 ▼0.608.05 ▲6.3538.10 ▼6.32
Dashboard /wp-admin2,196 ▲225.61 ▼0.1096.21 ▲4.2443.40 ▲0.95
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0039.29 ▼3.2137.29 ▲2.40
Add New Post /wp-admin/post-new.php1,530 ▲423.29 ▲0.38598.11 ▼67.4953.76 ▼0.61
Media Library /wp-admin/upload.php1,398 ▲14.27 ▲0.0895.63 ▼5.6242.24 ▼2.81
Shipink /wp-admin/admin.php?page=wc-shipink7762.0124.1638.34

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/shipink/admin/partials/shipink-admin-display.php
    • > /wp-content/plugins/shipink/public/partials/shipink-public-display.php

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 27 tag instead of maximum 10
You can take inspiration from this readme.txt

shipink/shipink.php Passed 13 tests

The primary PHP file in "Shipink" version 1.1.0 is used by WordPress to initiate all plugin functionality
135 characters long description:
Shipink is a new and innovative way for e-commerce companies to easily integrate and use the shipping companies they want to work with.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected510 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP13144533466
PO File24038
JavaScript24546
CSS2080

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.14
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2578.12%
▷ Protected methods00.00%
▷ Private methods721.88%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin