89% chargeback-order-status-for-woocommerce

Code Review | Chargeback Order Status for Woocommerce

WordPress plugin Chargeback Order Status for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: chargeback-order-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 3, 2020
  • Latest release: Sep 3, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: artesdevel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /397 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
This plugin's installer ran successfully

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

A check of server-side resources used by Chargeback Order Status for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.04 ▼1.94
Dashboard /wp-admin3.32 ▼0.0351.53 ▼13.83
Posts /wp-admin/edit.php3.37 ▲0.0148.93 ▼2.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.27 ▼18.63
Media Library /wp-admin/upload.php3.24 ▲0.0136.94 ▼1.18

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Chargeback Order Status for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.74 ▲0.212.11 ▲0.5449.17 ▲6.85
Dashboard /wp-admin2,194 ▲175.61 ▼0.1094.37 ▲3.4343.76 ▼0.45
Posts /wp-admin/edit.php2,102 ▲51.98 ▼0.0235.57 ▼1.6836.39 ▼1.04
Add New Post /wp-admin/post-new.php1,528 ▼023.02 ▼0.15627.99 ▼53.4457.51 ▲3.98
Media Library /wp-admin/upload.php1,405 ▲84.22 ▲0.12101.86 ▼13.2644.08 ▼2.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: woocommerce, chargeback, custom status, order status

chargeback-order-status-for-woocommerce/wc-chargeback-order-status.php 85% from 13 tests

The principal PHP file in "Chargeback Order Status for Woocommerce" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chargeback-order-status-for-woocommerce.php" instead of "wc-chargeback-order-status.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 plugin68 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP193239
Markdown114025
CSS1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
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
No PNG images were found in this plugin