78% boz-prod-woocommerce-hipay-wallet-pro

Code Review | Boz Prod Woocommerce HiPay Wallet Pro

WordPress plugin Boz Prod Woocommerce HiPay Wallet Pro scored78%from 54 tests.

About plugin

  • Plugin page: boz-prod-woocomme...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 8, 2020
  • Latest release: Feb 9, 2020
  • Number of updates: 21
  • Update frequency: every 0.1 days
  • Top authors: bbfunk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /535 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.46MB] [CPU: ▼0.82ms] Passed 4 tests

Analyzing server-side resources used by Boz Prod Woocommerce HiPay Wallet Pro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4741.56 ▼0.83
Dashboard /wp-admin3.76 ▲0.4651.13 ▼1.65
Posts /wp-admin/edit.php3.88 ▲0.5252.85 ▲3.36
Add New Post /wp-admin/post-new.php6.36 ▲0.4895.65 ▼3.59
Media Library /wp-admin/upload.php3.69 ▲0.4639.27 ▲2.77

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

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

Browser metrics Passed 4 tests

Boz Prod Woocommerce HiPay Wallet Pro: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲8613.41 ▼0.957.83 ▲5.9139.70 ▼6.48
Dashboard /wp-admin2,198 ▲185.62 ▼0.0690.52 ▲5.0436.82 ▼5.30
Posts /wp-admin/edit.php2,107 ▲72.02 ▼0.0140.16 ▲2.2635.39 ▼3.30
Add New Post /wp-admin/post-new.php1,533 ▲223.18 ▲0.23637.27 ▼8.8053.49 ▼10.68
Media Library /wp-admin/upload.php1,403 ▲64.16 ▼0.0199.92 ▼7.3643.43 ▼3.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following items
  • 8× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/assets/js/index.php
    • > /wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/includes/index.php
    • > /wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/assets/img/index.php
    • > /wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/index.php
    • > /wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/includes/lib/index.php
    • > /wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/languages/index.php
    • > /wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/assets/css/index.php
    • > /wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/assets/index.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/boz-prod-woocommerce-hipaywallet-pro.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/includes/woohipaypro.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boz-prod-woocommerce-hipay-wallet-pro/includes/functions.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: hipay, subscription, payment, woocommerce, gateway...

boz-prod-woocommerce-hipay-wallet-pro/boz-prod-woocommerce-hipaywallet-pro.php 85% from 13 tests

"Boz Prod Woocommerce HiPay Wallet Pro" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("boz-prod-woocommerce-hipay-wallet-pro.php" instead of "boz-prod-woocommerce-hipaywallet-pro.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,974 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP71,0392741,813
CSS3740483
PO File1202203419
JavaScript31751220
SVG10139

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity31.33
▷ Minimum class complexity21.00
▷ Maximum class complexity45.00
Average method complexity6.69
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/hipay-logo-blue.png24.19KB7.44KB▼ 69.23%
assets/img/hipay-logo-white.png16.59KB6.18KB▼ 62.76%
assets/img/hipay-logo-black.png10.22KB6.02KB▼ 41.10%