77% shippypro-woocommerce

Code Review | ShippyPro - Shipping Estimates and Dropoff Locations

WordPress plugin ShippyPro - Shipping Estimates and Dropoff Locations scored77%from 54 tests.

About plugin

  • Plugin page: shippypro-woocomm...
  • Plugin version: 0.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Jun 21, 2017
  • Latest release: Dec 13, 2018
  • Number of updates: 25
  • Update frequency: every 21.6 days
  • Top authors: shippypro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,410 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.72ms] Passed 4 tests

This is a short check of server-side resources used by ShippyPro - Shipping Estimates and Dropoff Locations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.24 ▲0.85
Dashboard /wp-admin3.34 ▼0.0151.21 ▼12.41
Posts /wp-admin/edit.php3.39 ▲0.0349.53 ▲2.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.75 ▼12.35
Media Library /wp-admin/upload.php3.26 ▲0.0335.27 ▼14.95

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

A short overview of filesystem and database impact
Just a few items left to fix
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/shippypro-woocommerce/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for ShippyPro - Shipping Estimates and Dropoff Locations
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.32 ▼1.435.44 ▲3.7842.89 ▲1.66
Dashboard /wp-admin2,224 ▲214.86 ▼1.11100.92 ▼16.1541.55 ▼4.37
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0236.26 ▼1.4538.08 ▲2.01
Add New Post /wp-admin/post-new.php1,554 ▲2318.14 ▼5.11604.53 ▼60.7555.06 ▲0.84
Media Library /wp-admin/upload.php1,403 ▲124.25 ▼0.0099.56 ▼0.1741.00 ▼3.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shippypro-woocommerce/includes/promo.php
    • > /wp-content/plugins/shippypro-woocommerce/get-access-points.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/shippypro-woocommerce/includes/welcome.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/shippypro-woocommerce/includes/welcome.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/shippypro-woocommerce/includes/class-shp-shippypro.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
  • Screenshots: Screenshot #4 (Overview of the service) image required
  • Tags: You are using too many tags: 22 tag instead of maximum 10
Please take inspiration from this readme.txt

shippypro-woocommerce/shippypro-woocommerce.php Passed 13 tests

This is the main PHP file of "ShippyPro - Shipping Estimates and Dropoff Locations" version 0.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Obtain Real time shipping rates via the ShippyPro API.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected983 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8169120925
HTML18058

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity21.00
▷ Minimum class complexity4.00
▷ Maximum class complexity54.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected