94% hivefiliate-for-woocommerce

Code Review | Hivefiliate for WooCommerce

WordPress plugin Hivefiliate for WooCommerce scored 94% from 54 tests.

About plugin

  • Plugin page: hivefiliate-for-w...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3.2
  • WordPress version: 5.8.1
  • First release: Feb 6, 2020
  • Latest release: Feb 6, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: hiveadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 199 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Hivefiliate for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0034.29 ▼1.12
Dashboard /wp-admin3.06 ▲0.0047.46 ▼2.55
Posts /wp-admin/edit.php3.11 ▲0.0046.28 ▲1.42
Add New Post /wp-admin/post-new.php5.42 ▼0.0289.48 ▼560.18
Media Library /wp-admin/upload.php3.00 ▲0.0033.64 ▼2.24

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Hivefiliate for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.24 ▲0.6011.12 ▲1.1349.85 ▼3.87
Dashboard /wp-admin2,967 ▲306.04 ▼0.17139.43 ▼6.94110.10 ▲4.30
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0067.16 ▼13.1290.50 ▲7.74
Add New Post /wp-admin/post-new.php1,788 ▼1,85718.91 ▲0.24377.29 ▼107.45109.48 ▼5.24
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.01166.63 ▼7.16116.84 ▲4.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/hivefiliate-for-woocommerce/hivefiliate.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: referral, ecommerce, woocommerce, affiliate software, affiliate...

hivefiliate-for-woocommerce/hivefiliate.php 92% from 13 tests

The main PHP file in "Hivefiliate for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("hivefiliate-for-woocommerce.php" instead of "hivefiliate.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 detected245 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4122110245

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.00
▷ Minimum class complexity9.00
▷ Maximum class complexity11.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods1493.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin