89% payhelm-for-woocommerce

Code Review | PayHelm for WooCommerce

WordPress plugin PayHelm for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: payhelm-for-wooco...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2023
  • Latest release: Jan 28, 2023
  • Number of updates: 7
  • Update frequency: every 1.7 days
  • Top authors: sukow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /126 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by PayHelm for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.32 ▲5.76
Dashboard /wp-admin3.33 ▲0.0249.84 ▲1.15
Posts /wp-admin/edit.php3.38 ▲0.0249.26 ▼12.33
Add New Post /wp-admin/post-new.php5.91 ▲0.02102.09 ▲2.17
Media Library /wp-admin/upload.php3.25 ▲0.0237.57 ▲1.69

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for PayHelm for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.34 ▼1.064.23 ▲2.4445.47 ▼3.83
Dashboard /wp-admin2,214 ▲264.85 ▼0.08116.48 ▼3.4848.57 ▲0.91
Posts /wp-admin/edit.php2,096 ▲42.01 ▼0.0443.32 ▼1.1142.68 ▲1.34
Add New Post /wp-admin/post-new.php1,541 ▲2123.21 ▼0.26716.27 ▲37.0265.60 ▲10.83
Media Library /wp-admin/upload.php1,396 ▲84.27 ▲0.06122.40 ▲5.9451.26 ▲3.84

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
There were no plugin tags found

payhelm-for-woocommerce/payhelm-wooc.php 85% from 13 tests

"PayHelm for WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("payhelm-for-woocommerce.php" instead of "payhelm-wooc.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 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected295 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10138470295

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin