90% payfeez

Code Review | PayFeez

WordPress plugin PayFeez scored90%from 54 tests.

About plugin

  • Plugin page: payfeez
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2023
  • Latest release: Nov 17, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: killiansantos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /10 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by PayFeez
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.52 ▼2.55
Dashboard /wp-admin3.33 ▲0.0345.27 ▼4.84
Posts /wp-admin/edit.php3.38 ▲0.0249.93 ▲1.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.75 ▼7.00
Media Library /wp-admin/upload.php3.25 ▲0.0234.19 ▲1.23

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

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

Browser metrics Passed 4 tests

PayFeez: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.70 ▲0.351.73 ▼0.3444.64 ▼0.64
Dashboard /wp-admin2,201 ▲245.53 ▼0.0590.06 ▼4.3440.58 ▼6.07
Posts /wp-admin/edit.php2,106 ▲61.94 ▼0.0339.48 ▲0.5038.06 ▲5.35
Add New Post /wp-admin/post-new.php1,532 ▲623.01 ▲0.13631.87 ▼27.8257.58 ▲5.02
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.01100.01 ▼6.2142.97 ▼0.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: stancer fees, paypal fees, frais woocommerce, woocommerce fees, stripe fees

payfeez/payfeez.php Passed 13 tests

This is the main PHP file of "PayFeez" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Apply fees based on the WooCommerce payment gateway selected by the customer.

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
Everything looks great! No dangerous files found in this plugin884 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13179273764
PO File23872120

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions50
▷ Named functions50100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin