89% change-payment-description-for-woocommerce

Code Review | Change Payment Description for WooCommerce

WordPress plugin Change Payment Description for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: change-payment-de...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-6.0
  • WordPress version: 6.3.1
  • First release: May 12, 2021
  • Latest release: Sep 23, 2022
  • Number of updates: 7
  • Update frequency: every 72.1 days
  • Top authors: polyres (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.01ms] Passed 4 tests

A check of server-side resources used by Change Payment Description for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.28 ▲2.56
Dashboard /wp-admin3.34 ▼0.0147.70 ▼13.14
Posts /wp-admin/edit.php3.39 ▲0.0344.81 ▼0.88
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.52 ▼7.73
Media Library /wp-admin/upload.php3.26 ▲0.0333.51 ▲1.71

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Change Payment Description for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.35 ▼1.451.75 ▼0.0543.31 ▲3.27
Dashboard /wp-admin2,214 ▲234.87 ▼0.04101.12 ▼9.6141.92 ▼6.23
Posts /wp-admin/edit.php2,096 ▲102.02 ▲0.0139.66 ▲4.7734.78 ▼5.53
Add New Post /wp-admin/post-new.php1,541 ▲823.23 ▼0.01699.76 ▲86.0459.53 ▼5.93
Media Library /wp-admin/upload.php1,399 ▲144.19 ▼0.05100.36 ▼0.4544.51 ▲2.23

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: payment description, woocommerce, stripe backend, stripe

change-payment-description-for-woocommerce/change-payment-description.php 85% from 13 tests

Analyzing the main PHP file in "Change Payment Description for WooCommerce" version 1.0.1
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "3.4.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("change-payment-description-for-woocommerce.php" instead of "change-payment-description.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected119 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP134114119

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods433.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected