89% wc-hide-shipping-methods-except-pont

Code Review | WC Hide Shipping Methods Except Pont

WordPress plugin WC Hide Shipping Methods Except Pont scored 89% from 54 tests.

About plugin

  • Plugin page: wc-hide-shipping-...
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Jan 15, 2019
  • Latest release: Jun 17, 2022
  • Number of updates: 12
  • Update frequency: every 104.2 days
  • Top authors: csa3a07 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 2,625 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WC Hide Shipping Methods Except Pont
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.55 ▼4.05
Dashboard /wp-admin3.31 ▲0.0044.49 ▼3.97
Posts /wp-admin/edit.php3.36 ▲0.0048.54 ▲1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.01 ▼19.55
Media Library /wp-admin/upload.php3.23 ▲0.0029.74 ▼3.87

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
wc_hide_shipping_options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WC Hide Shipping Methods Except Pont
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.30 ▼1.071.65 ▼0.2239.80 ▼4.88
Dashboard /wp-admin2,206 ▲185.90 ▲0.92107.92 ▲2.6241.76 ▼3.32
Posts /wp-admin/edit.php2,092 ▼01.98 ▼0.0339.20 ▼0.3835.63 ▲0.37
Add New Post /wp-admin/post-new.php1,542 ▲1418.30 ▲0.28584.28 ▼19.7048.50 ▼2.26
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.1294.81 ▼0.0040.46 ▼3.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • wc_hide_shipping_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

wc-hide-shipping-methods-except-pont/kezmuvesraketa-hide-nonfree-shipping.php 77% from 13 tests

The main PHP script in "WC Hide Shipping Methods Except Pont" version 1.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 242 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-hide-shipping-methods-except-pont.php" instead of "kezmuvesraketa-hide-nonfree-shipping.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin140 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2323172
PO File1242968

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.75
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin