90% plutu-woocommerce

Code Review | Plutu WooCommerce

WordPress plugin Plutu WooCommerce scored 90% from 54 tests.

About plugin

  • Plugin page: plutu-woocommerce
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Mar 17, 2022
  • Latest release: Aug 22, 2023
  • Number of updates: 20
  • Update frequency: every 26.2 days
  • Top authors: plutupayment (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.29ms] Passed 4 tests

Analyzing server-side resources used by Plutu WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.86 ▼3.68
Dashboard /wp-admin3.31 ▲0.0045.26 ▼6.44
Posts /wp-admin/edit.php3.36 ▲0.0049.71 ▲1.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.05 ▼16.16
Media Library /wp-admin/upload.php3.23 ▲0.0036.18 ▲1.79

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plutu WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.001.73 ▼0.1944.14 ▲1.79
Dashboard /wp-admin2,206 ▲215.80 ▲0.9094.06 ▼21.3838.90 ▼7.22
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0140.09 ▲4.5635.73 ▼0.40
Add New Post /wp-admin/post-new.php1,533 ▲1923.26 ▲5.72661.76 ▲23.2857.15 ▲3.65
Media Library /wp-admin/upload.php1,391 ▲34.14 ▼0.05101.54 ▲4.3145.94 ▲4.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

plutu-woocommerce/plutu-woocommerce.php Passed 13 tests

The entry point to "Plutu WooCommerce" version 1.0.7 is a PHP file that has certain tags in its header comment area
39 characters long description:
Plutu Payment Gateways for WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,865 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP242537381,446
PO File1101190252
JavaScript21718142
CSS11625

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.42
▷ Minimum class complexity2.00
▷ Maximum class complexity33.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits2
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods53
▷ Static methods00.00%
▷ Public methods4075.47%
▷ Protected methods1324.53%
▷ Private methods00.00%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin