84% transactium-woocommerce-addon

Code Review | Transactium WooCommerce AddOn

WordPress plugin Transactium WooCommerce AddOn scored84%from 54 tests.

About plugin

  • Plugin page: transactium-wooco...
  • Plugin version: 1.14
  • PHP version: 7.4.16
  • WordPress compatibility: 2.4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Sep 4, 2023
  • Number of updates: 64
  • Update frequency: every 36.6 days
  • Top authors: transactiumdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,982 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.95ms] Passed 4 tests

Analyzing server-side resources used by Transactium WooCommerce AddOn
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1635.17 ▼1.41
Dashboard /wp-admin3.47 ▲0.1343.93 ▼15.14
Posts /wp-admin/edit.php3.58 ▲0.2345.07 ▼3.41
Add New Post /wp-admin/post-new.php6.05 ▲0.1694.64 ▲0.16
Media Library /wp-admin/upload.php3.39 ▲0.1637.45 ▲5.58

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Transactium WooCommerce AddOn
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.371.77 ▼0.0238.82 ▲1.39
Dashboard /wp-admin2,203 ▲154.84 ▼1.06101.18 ▼2.3938.42 ▼1.87
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0235.04 ▼2.2630.50 ▼0.40
Add New Post /wp-admin/post-new.php1,534 ▲123.19 ▲0.07672.04 ▼4.5758.74 ▲5.31
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0493.97 ▼6.7545.26 ▲1.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/transactium-woocommerce-addon/transactium-woocommerce-addon.php:13

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 93% 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 18 tag instead of maximum 10
The official readme.txt might help

transactium-woocommerce-addon/transactium-woocommerce-addon.php 92% from 13 tests

"Transactium WooCommerce AddOn" version 1.14's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.9" instead of "2.4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin998 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1166112871
JavaScript14221119
CSS1108

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity110.00
▷ Minimum class complexity110.00
▷ Maximum class complexity110.00
Average method complexity6.88
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin