90% woo-stripe-fee-in-report

Code Review | WooCommerce Stripe fee in Report

WordPress plugin WooCommerce Stripe fee in Report scored90%from 54 tests.

About plugin

  • Plugin page: woo-stripe-fee-in...
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5
  • WordPress version: 6.3.1
  • First release: Feb 25, 2018
  • Latest release: Aug 24, 2020
  • Number of updates: 25
  • Update frequency: every 36.4 days
  • Top authors: rvola (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /5,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by WooCommerce Stripe fee in Report
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.51 ▼4.55
Dashboard /wp-admin3.31 ▲0.0046.54 ▼3.67
Posts /wp-admin/edit.php3.36 ▲0.0048.41 ▼4.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.24 ▼2.92
Media Library /wp-admin/upload.php3.23 ▲0.0032.81 ▼0.06

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Stripe fee in Report
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.061.69 ▼0.9142.69 ▲0.74
Dashboard /wp-admin2,206 ▲185.84 ▲0.9396.82 ▼4.5039.10 ▼5.34
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0538.96 ▼1.6935.21 ▼4.84
Add New Post /wp-admin/post-new.php1,542 ▼018.57 ▲0.33617.81 ▼11.3268.93 ▲15.05
Media Library /wp-admin/upload.php1,382 ▼64.13 ▼0.0795.43 ▼4.3641.86 ▼1.89

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

woo-stripe-fee-in-report/woo-stripe-fee-in-report.php Passed 13 tests

Analyzing the main PHP file in "WooCommerce Stripe fee in Report" version 1.2.6
72 characters long description:
Shows Stripe fees in WooCommerce charts. Calculates a correct net total.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin384 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP398162384

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.50
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1280.00%
▷ Protected methods00.00%
▷ Private methods320.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected