89% vamaship-shipping

Code Review | VAMASHIP SHIPPING

WordPress plugin VAMASHIP SHIPPING scored89%from 54 tests.

About plugin

  • Plugin page: vamaship-shipping
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Jun 14, 2019
  • Latest release: Feb 5, 2020
  • Number of updates: 12
  • Update frequency: every 20.6 days
  • Top authors: vamaship (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,552 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.42ms] Passed 4 tests

Analyzing server-side resources used by VAMASHIP SHIPPING
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0141.79 ▼3.00
Dashboard /wp-admin3.35 ▲0.0150.49 ▼2.13
Posts /wp-admin/edit.php3.41 ▲0.0149.36 ▼3.25
Add New Post /wp-admin/post-new.php5.94 ▲0.0188.09 ▼4.15
Media Library /wp-admin/upload.php3.28 ▲0.0135.63 ▼3.28

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

VAMASHIP SHIPPING: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.051.69 ▼0.2844.15 ▼2.96
Dashboard /wp-admin2,198 ▲215.59 ▲0.0684.89 ▼4.9739.80 ▼0.38
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0234.35 ▼8.8936.16 ▼0.76
Add New Post /wp-admin/post-new.php1,526 ▼023.93 ▲0.49686.35 ▼46.4253.84 ▼3.60
Media Library /wp-admin/upload.php1,400 ▲34.29 ▲0.07108.02 ▲4.9846.82 ▲2.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #11 (Import / Export Settings), #12 (Other Settings), #13 (Discount Settings), #14 (Thank You Order), #15 (QR/Barcode Settings), #16 (Delivery Settings)
The official readme.txt is a good inspiration

vamaship-shipping/vamaship_shipping.php 85% from 13 tests

The principal PHP file in "VAMASHIP SHIPPING" v. 1.1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("vamaship-shipping.php" instead of "vamaship_shipping.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,341 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7852211,247
PO File1262869
JavaScript15125

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity42.25
▷ Minimum class complexity2.00
▷ Maximum class complexity149.00
Average method complexity5.71
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/shipment.png1.74KB1.09KB▼ 37.24%