89% woo-shippify

Code Review | Woocommerce Shippify Plugin

WordPress plugin Woocommerce Shippify Plugin scored89%from 54 tests.

About plugin

  • Plugin page: woo-shippify
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-4.7.4
  • WordPress version: 6.3.1
  • First release: May 9, 2017
  • Latest release: Nov 8, 2017
  • Number of updates: 22
  • Update frequency: every 8.4 days
  • Top authors: shippifywordpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,004 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼2.20ms] Passed 4 tests

This is a short check of server-side resources used by Woocommerce Shippify Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.00 ▼4.37
Dashboard /wp-admin3.31 ▲0.0150.40 ▼3.29
Posts /wp-admin/edit.php3.37 ▲0.0150.78 ▲1.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.01 ▼2.33
Media Library /wp-admin/upload.php3.24 ▲0.0137.19 ▲1.31

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Woocommerce Shippify Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.421.78 ▼0.0541.45 ▼6.33
Dashboard /wp-admin2,192 ▲185.54 ▲0.0182.91 ▼11.3438.79 ▼3.58
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0236.07 ▼0.6731.39 ▼5.19
Add New Post /wp-admin/post-new.php1,531 ▲323.33 ▲0.25671.74 ▲6.2369.71 ▲18.01
Media Library /wp-admin/upload.php1,400 ▲64.20 ▲0.1099.80 ▼4.2647.75 ▲2.76

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Checkout Order Review), #2 (Shippify Integration Setup), #3 (Shipping Zone Warehouse Setup), #4 (Shippify As a Shipping Method), #5 (Dispatch Action at Orders)
You can look at the official readme.txt

woo-shippify/woocommerce-shippify.php 85% from 13 tests

The main PHP file in "Woocommerce Shippify Plugin" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-shippify.php" instead of "woocommerce-shippify.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,377 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PO File106506151,973
PHP72463251,098
JavaScript26640175
Markdown135084
CSS19947

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity29.33
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity5.47
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods38
▷ Static methods12.63%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.67MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png58.80KB32.37KB▼ 44.95%
assets/screenshot-2.png153.72KB36.68KB▼ 76.14%
assets/screenshot-1.png143.06KB37.53KB▼ 73.77%
assets/screenshot-3.png160.34KB39.88KB▼ 75.13%
assets/screenshot-4.png167.48KB43.29KB▼ 74.15%