10% wp-e-commerce-region-based-shipping-for-australia-states

Code Review | WP E-Commerce Region Based Shipping Australia States

WordPress plugin WP E-Commerce Region Based Shipping Australia States scored10%from 54 tests.

About plugin

  • Plugin page: wp-e-commerce-reg...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.3.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2012
  • Latest release: Oct 2, 2012
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: DJB31st (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,214 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wp-e-commerce-region-based-shipping-for-australia-states/crikey.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; crikey has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼52.19ms] Passed 4 tests

An overview of server-side resources used by WP E-Commerce Region Based Shipping Australia States
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.65 ▼34.25
Dashboard /wp-admin2.11 ▼1.196.06 ▼44.96
Posts /wp-admin/edit.php2.11 ▼1.256.14 ▼42.73
Add New Post /wp-admin/post-new.php2.11 ▼3.786.48 ▼86.83
Media Library /wp-admin/upload.php2.11 ▼1.124.86 ▼29.33

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

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

Browser metrics Passed 4 tests

WP E-Commerce Region Based Shipping Australia States: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.351.87 ▼0.2844.38 ▼2.36
Dashboard /wp-admin2,198 ▲185.57 ▲0.0384.72 ▼2.5243.02 ▲5.06
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.1138.12 ▲2.7635.12 ▼1.40
Add New Post /wp-admin/post-new.php1,528 ▼323.30 ▲0.14650.21 ▼20.8654.89 ▲1.61
Media Library /wp-admin/upload.php1,394 ▼34.25 ▼0.0296.26 ▼6.5141.61 ▼4.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wp-e-commerce-region-based-shipping-for-australia-states/crikey.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; crikey has a deprecated constructor
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-e-commerce-region-based-shipping-for-australia-states/crikey.php:302

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-e-commerce-region-based-shipping-for-australia-states === )
  • Screenshots: Please add images for these screenshots: #1 (Screenshot of modules backend options), #2 (Screenshot of modules frontend options)
You can look at the official readme.txt

wp-e-commerce-region-based-shipping-for-australia-states/crikey.php 92% from 13 tests

Analyzing the main PHP file in "WP E-Commerce Region Based Shipping Australia States" version 0.1.2
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-e-commerce-region-based-shipping-for-australia-states.php" instead of "crikey.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected181 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17153181

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png18.80KB8.59KB▼ 54.29%
screenshot-1.png55.51KB17.31KB▼ 68.81%