84% hide-shipping-methods

Code Review | Hide Shipping Methods

WordPress plugin Hide Shipping Methods scored84%from 54 tests.

About plugin

  • Plugin page: hide-shipping-met...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.4
  • WordPress version: 6.3.1
  • First release: Jan 22, 2016
  • Latest release: Apr 18, 2017
  • Number of updates: 6
  • Update frequency: every 75.3 days
  • Top authors: boluda (83.33%)unitepress (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.20ms] Passed 4 tests

Server-side resources used by Hide Shipping Methods
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0041.29 ▼1.40
Dashboard /wp-admin13.52 ▲10.141,932,426.96 ▲1,932,358.33
Posts /wp-admin/edit.php3.40 ▲0.0054.84 ▼2.53
Add New Post /wp-admin/post-new.php5.93 ▲0.0099.36 ▼9.95
Media Library /wp-admin/upload.php3.27 ▲0.0037.52 ▲1.06

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide Shipping Methods
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.25 ▼0.171.84 ▼0.3444.29 ▲1.21
Dashboard /wp-admin2,195 ▲185.61 ▼0.0686.53 ▼2.8038.55 ▼6.49
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0440.29 ▼3.4836.32 ▼3.76
Add New Post /wp-admin/post-new.php1,526 ▼723.13 ▲0.01611.34 ▼67.5747.63 ▼7.96
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.04104.09 ▼4.2844.81 ▼1.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hide-shipping-methods/hide-shipping-methods.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: shipping methods, free shipping, woocommerce

hide-shipping-methods/hide-shipping-methods.php 92% from 13 tests

"Hide Shipping Methods" version 0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192312

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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 Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin