10% honey-woocommerce-payments

Code Review | Honey Woocommerce Payments

WordPress plugin Honey Woocommerce Payments scored10%from 54 tests.

About plugin

  • Plugin page: honey-woocommerce...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.1
  • WordPress version: 6.3.1
  • First release: May 18, 2018
  • Latest release: Jan 17, 2019
  • Number of updates: 8
  • Update frequency: every 31.3 days
  • Top authors: honeyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /756 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/honey-woocommerce-payments/honey_woocommerce.php+85
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.60ms] Passed 4 tests

Analyzing server-side resources used by Honey Woocommerce Payments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.25 ▼6.46
Dashboard /wp-admin3.31 ▼0.0444.66 ▼16.14
Posts /wp-admin/edit.php3.36 ▲0.0045.12 ▲0.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.23 ▼4.60
Media Library /wp-admin/upload.php3.23 ▲0.0035.98 ▲1.37

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Honey Woocommerce Payments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.021.82 ▼0.1436.17 ▼9.12
Dashboard /wp-admin2,195 ▲155.62 ▼0.0483.53 ▼11.9337.87 ▼2.50
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0235.75 ▼3.2130.71 ▼4.61
Add New Post /wp-admin/post-new.php1,526 ▼222.91 ▲0.27595.07 ▼5.7269.25 ▼7.33
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0799.27 ▼5.7643.35 ▼0.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/honey-woocommerce-payments/honey_woocommerce_class.php:2
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/honey-woocommerce-payments/honey_woocommerce.php on line 85

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • License uri: Please fix this invalid URI: "URI: http://www.gnu.org/licenses/gpl-2.0.html"
You can take inspiration from this readme.txt

honey-woocommerce-payments/honey_woocommerce.php 92% from 13 tests

The main file in "Honey Woocommerce Payments" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("honey-woocommerce-payments.php" instead of "honey_woocommerce.php")

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
Good job! No executable or dangerous file extensions detected170 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24917169
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/honeylogo.png38.97KB5.05KB▼ 87.04%