84% octolize-shipping-notices

Code Review | Shipping Notices and No shipping options found info for WooCommerce

WordPress plugin Shipping Notices and No shipping options found info for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: octolize-shipping...
  • Plugin version: 1.5.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Jul 6, 2022
  • Latest release: Nov 7, 2023
  • Number of updates: 47
  • Update frequency: every 10.4 days
  • Top authors: octolize (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,921 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.43MB] [CPU: ▼7.03ms] Passed 4 tests

Analyzing server-side resources used by Shipping Notices and No shipping options found info for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4540.73 ▼2.77
Dashboard /wp-admin3.75 ▲0.4048.77 ▼18.52
Posts /wp-admin/edit.php3.80 ▲0.4450.19 ▼0.73
Add New Post /wp-admin/post-new.php6.33 ▲0.4496.74 ▼6.08
Media Library /wp-admin/upload.php3.67 ▲0.4438.33 ▲4.44

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 429 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
wpdesk_requirements_plugins_data
db_upgraded
plugin_activation_octolize-shipping-notices/octolize-shipping-notices.php

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shipping Notices and No shipping options found info for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5814.25 ▼0.131.86 ▲0.2137.93 ▼5.38
Dashboard /wp-admin2,200 ▲265.56 ▼0.0393.25 ▼5.6744.02 ▲0.39
Posts /wp-admin/edit.php2,105 ▲22.01 ▲0.0239.52 ▲2.5336.63 ▲0.02
Add New Post /wp-admin/post-new.php1,540 ▲1423.55 ▲0.58620.15 ▼73.2058.11 ▼0.08
Media Library /wp-admin/upload.php1,408 ▲114.17 ▼0.0697.05 ▼8.6341.68 ▼0.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • plugin_activation_octolize-shipping-notices/octolize-shipping-notices.php
    • can_compress_scripts
    • wpdesk_requirements_plugins_data
    • theysaidso_admin_options

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 192× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'OctolizeShippingNoticesVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/octolize-shipping-notices/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SqsHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'OctolizeShippingNoticesVendor\\Monolog\\Handler\\MailHandler' not found in wp-content/plugins/octolize-shipping-notices/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'OctolizeShippingNoticesVendor\\Monolog\\Handler\\Handler' not found in wp-content/plugins/octolize-shipping-notices/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NullHandler.php:27
    • > PHP Fatal error
      Trait 'OctolizeShippingNoticesVendor\\WPDesk\\Tracker\\Deactivation\\DeactivationContent' not found in wp-content/plugins/octolize-shipping-notices/vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/Thickbox.php on line 8
    • > PHP Fatal error
      Uncaught Error: Interface 'OctolizeShippingNoticesVendor\\Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/octolize-shipping-notices/vendor_prefixed/psr/http-message/src/ResponseInterface.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'OctolizeShippingNoticesVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/octolize-shipping-notices/vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/OptInPage.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'OctolizeShippingNoticesVendor\\Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/octolize-shipping-notices/vendor_prefixed/psr/http-message/src/RequestInterface.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'OctolizeShippingNoticesVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/octolize-shipping-notices/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'Octolize\\Shipping\otices\\ShippingNotice\\ShippingNoticeFilter\oticeFilter' not found in wp-content/plugins/octolize-shipping-notices/src/ShippingNotice/ShippingNoticeFilter/NoticeRegionFilter.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'OctolizeShippingNoticesVendor\\WPDesk\\RepositoryRating\\DisplayStrategy\\DisplayDecision' not found in wp-content/plugins/octolize-shipping-notices/src/Plugin/TextPetitionDisplayDecision.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: woocommerce no shipping, woocommerce no shipping options were found, woocommerce shipping, woocommerce shipping notices, woocommerce shipping message...

octolize-shipping-notices/octolize-shipping-notices.php 92% from 13 tests

The primary PHP file in "Shipping Notices and No shipping options found info for WooCommerce" version 1.5.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.7" instead of "5.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected17,266 lines of code in 415 files:
LanguageFilesBlank linesComment linesLines of code
PHP3651,18012,01515,980
JSON1900903
SVG2000157
CSS4242123
JavaScript53178
Markdown25025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.70
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces57
Interfaces55
Traits12
Classes268
▷ Abstract classes124.48%
▷ Concrete classes25695.52%
▷ Final classes62.34%
Methods1,463
▷ Static methods956.49%
▷ Public methods1,11276.01%
▷ Protected methods18412.58%
▷ Private methods16711.41%
Functions55
▷ Named functions1425.45%
▷ Anonymous functions4174.55%
Constants177
▷ Global constants42.26%
▷ Class constants17397.74%
▷ Public constants13678.61%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo@2x.png4.17KB4.47KB0.00%
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.pl.png2.36KB2.43KB0.00%
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.png2.36KB2.43KB0.00%
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/flexibleshipping.com.png5.63KB3.68KB▼ 34.58%
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/octolize.com.png88.91KB39.07KB▼ 56.06%