89% wpant-coupons-pay-for-shipping-woocommerce

Code Review | Woo Coupons Pay for Shipping

WordPress plugin Woo Coupons Pay for Shipping scored89%from 54 tests.

About plugin

  • Plugin page: wpant-coupons-pay...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 24, 2016
  • Latest release: Dec 24, 2016
  • Number of updates: 13
  • Update frequency: every 2.5 days
  • Top authors: azharulhaque (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /1,737 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Woo Coupons Pay for Shipping
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.36 ▼4.71
Dashboard /wp-admin3.31 ▼0.0444.12 ▼19.16
Posts /wp-admin/edit.php3.36 ▲0.0047.28 ▲0.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.26 ▼15.03
Media Library /wp-admin/upload.php3.23 ▲0.0036.23 ▲1.70

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Woo Coupons Pay for Shipping
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.351.68 ▼0.1540.70 ▼4.72
Dashboard /wp-admin2,198 ▲215.55 ▼0.0789.71 ▼3.1038.19 ▼0.00
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0435.05 ▼3.4636.78 ▲4.10
Add New Post /wp-admin/post-new.php1,526 ▼1122.88 ▲4.92587.25 ▼69.0347.42 ▼20.51
Media Library /wp-admin/upload.php1,397 ▼34.31 ▲0.1195.80 ▼9.7343.20 ▼4.40

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 detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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 just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Before active the WpAnt Coupons Pay for Shipping plugin), #2 (After activate the WpAnt Coupons Pay for Shipping plugin)
Please take inspiration from this readme.txt

wpant-coupons-pay-for-shipping-woocommerce/wordpressant-coupons-pay-for-shipping-woocommerce.php 77% from 13 tests

The entry point to "Woo Coupons Pay for Shipping" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 484 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpant-coupons-pay-for-shipping-woocommerce.php" instead of "wordpressant-coupons-pay-for-shipping-woocommerce.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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin127 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP462171127

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.50MB with 0.33MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png328.64KB127.00KB▼ 61.36%
screenshot-2.png188.18KB56.84KB▼ 69.79%