83% shipping-checkout-localized-for-vietnam

Code Review | Shipping & checkout – Localized for Vietnam

WordPress plugin Shipping & checkout – Localized for Vietnam scored83%from 54 tests.

About plugin

  • Plugin page: shipping-checkout...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.7
  • WordPress version: 6.3.1
  • First release: Apr 29, 2021
  • Latest release: Aug 31, 2021
  • Number of updates: 7
  • Update frequency: every 17.9 days
  • Top authors: bluecoral (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,211 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
Installer ran successfully

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

An overview of server-side resources used by Shipping & checkout – Localized for Vietnam
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.31 ▲0.36
Dashboard /wp-admin3.31 ▲0.0049.31 ▼6.00
Posts /wp-admin/edit.php3.36 ▲0.0044.78 ▼5.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.01 ▼16.08
Media Library /wp-admin/upload.php3.23 ▲0.0039.22 ▲5.95
Localized for Vietnam /wp-admin/admin.php?page=shipping-checkout-localized-for-vietnam3.0021.48

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Shipping & checkout – Localized for Vietnam
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.371.75 ▼0.5843.40 ▼1.09
Dashboard /wp-admin2,192 ▲185.54 ▼0.1390.94 ▼6.8239.22 ▼9.76
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0334.96 ▼6.2936.58 ▲0.68
Add New Post /wp-admin/post-new.php1,526 ▼023.30 ▲0.15678.67 ▼12.3460.87 ▲8.62
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.02105.55 ▲0.5345.50 ▼1.89
Localized for Vietnam /wp-admin/admin.php?page=shipping-checkout-localized-for-vietnam280.420.093.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=shipping-checkout-localized-for-vietnam
    • > Network (severe)
    wp-admin/admin.php?page=shipping-checkout-localized-for-vietnam - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: A description for screenshot #4 is missing in shipping-checkout-localized-for-vietnam/assets to your readme.txt
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

shipping-checkout-localized-for-vietnam/shipping-checkout-localized-for-vietnam.php 92% from 13 tests

The primary PHP file in "Shipping & checkout – Localized for Vietnam" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 185 characters long)

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 plugin13,177 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP71919012,864
CSS2166174
PO File12424101
JavaScript35638

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity30.75
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods60
▷ Static methods11.67%
▷ Public methods5896.67%
▷ Protected methods23.33%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png11.04KB5.24KB▼ 52.53%