10% woocommerce-table-rate-currency-converter

Code Review | WooCommerce Table Rate Currency Converter

WordPress plugin WooCommerce Table Rate Currency Converter scored 10% from 54 tests.

About plugin

  • Plugin page: woocommerce-table...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.11-4.7
  • WordPress version: 6.3.1
  • First release: Apr 15, 2013
  • Latest release: Dec 9, 2016
  • Number of updates: 6
  • Update frequency: every 222.5 days
  • Top authors: Gabriel Reguly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,837 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/woocommerce-table-rate-currency-converter/woo-includes/woo-functions-custom.php+13
    Non-static method WC_Dependencies::woocommerce_active_check() should not be called statically

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.04ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Table Rate Currency Converter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.36 ▼39.06
Dashboard /wp-admin2.05 ▼1.268.11 ▼36.44
Posts /wp-admin/edit.php2.05 ▼1.316.99 ▼39.40
Add New Post /wp-admin/post-new.php2.05 ▼3.845.79 ▼85.24
Media Library /wp-admin/upload.php2.05 ▼1.186.03 ▼27.88

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Table Rate Currency Converter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.14 ▼1.411.70 ▼0.2638.82 ▼8.81
Dashboard /wp-admin2,209 ▲186.07 ▲1.18109.15 ▲5.5740.44 ▼7.45
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0338.70 ▼0.6134.85 ▼2.73
Add New Post /wp-admin/post-new.php1,544 ▲1018.43 ▼4.69591.99 ▼65.6561.61 ▲6.77
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.03104.33 ▲3.0742.92 ▼2.66

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 did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/woocommerce-table-rate-currency-converter/woo-includes/woo-functions-custom.php+13
    Non-static method WC_Dependencies::woocommerce_active_check() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/woocommerce-table-rate-currency-converter/woocommerce-table-rate-currency-converter.php:25
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/woocommerce-table-rate-currency-converter/classes/class-wc-table-rate-currency-converter.php on line 277

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (screenshot-1.png)
You can look at the official readme.txt

woocommerce-table-rate-currency-converter/woocommerce-table-rate-currency-converter.php 92% from 13 tests

"WooCommerce Table Rate Currency Converter" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 243 characters long)

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 detected325 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP481139325

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity2.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin