84% rhinopaq-shipping

Code Review | rhinopaq shipping for WooCommerce

WordPress plugin rhinopaq shipping for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: rhinopaq-shipping
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2022
  • Latest release: Jul 31, 2023
  • Number of updates: 7
  • Update frequency: every 67.6 days
  • Top authors: rhinopaq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 total downloads

Benchmarks

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

Server-side resources used by rhinopaq shipping for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.24 ▼5.85
Dashboard /wp-admin3.31 ▲0.0044.06 ▼4.70
Posts /wp-admin/edit.php3.36 ▲0.0044.79 ▲0.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.99 ▼0.43
Media Library /wp-admin/upload.php3.23 ▲0.0032.88 ▼0.58

Server storage [IO: ▲0.69MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by rhinopaq shipping for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.081.54 ▼0.2138.00 ▼14.62
Dashboard /wp-admin2,206 ▲154.86 ▼1.08111.22 ▲8.3340.40 ▼2.88
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.36 ▲4.0835.99 ▲2.28
Add New Post /wp-admin/post-new.php1,520 ▼1723.11 ▲0.07630.77 ▲40.1450.41 ▲4.26
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0193.40 ▼4.3441.59 ▲0.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rhinopaq-shipping/rhinopaq-cart-update.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rhinopaq-shipping/rhinopaq-config.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rhinopaq-shipping/rhinopaq-checkout.php:92

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: reusable packaging, ecommerce, sustainability, packaging, rhinopaq...

rhinopaq-shipping/rhinopaq-shipping.php 92% from 13 tests

"rhinopaq shipping for WooCommerce" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "3.0")

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 detected1,124 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP579118524
PO File2910250
CSS2230146
JavaScript21726118
Markdown144086

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.50MB with 0.26MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/rhinopaq-logo.png40.59KB18.27KB▼ 54.99%
assets/images/settings.png468.25KB229.20KB▼ 51.05%