89% show-net-revenue-from-woocommerce-stripe-gateway

Code Review | Show Net Revenue from WooCommerce Stripe Gateway

WordPress plugin Show Net Revenue from WooCommerce Stripe Gateway scored89%from 54 tests.

About plugin

  • Plugin page: show-net-revenue-...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0
  • WordPress version: 6.3.1
  • First release: Feb 7, 2017
  • Latest release: Nov 1, 2018
  • Number of updates: 4
  • Update frequency: every 157.8 days
  • Top authors: Boswall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,039 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.20MB] [CPU: ▼15.60ms] Passed 4 tests

Server-side resources used by Show Net Revenue from WooCommerce Stripe Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.80 ▼0.6615.73 ▼24.36
Dashboard /wp-admin3.33 ▲0.0349.21 ▲1.81
Posts /wp-admin/edit.php3.16 ▼0.2030.09 ▼25.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.02 ▼14.69
Media Library /wp-admin/upload.php3.25 ▲0.0239.15 ▲4.98

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

Show Net Revenue from WooCommerce Stripe Gateway: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,445 ▼31614.68 ▲0.280.62 ▼1.1220.15 ▼22.74
Dashboard /wp-admin2,198 ▲185.62 ▼0.0588.61 ▲0.1744.19 ▼0.25
Posts /wp-admin/edit.php45 ▼2,0550.42 ▼1.570.07 ▼39.769.56 ▼30.61
Add New Post /wp-admin/post-new.php1,526 ▼221.80 ▼1.48665.27 ▼29.5866.94 ▲11.27
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.07107.75 ▲4.1447.80 ▲1.69

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
No plugin tags provided

show-net-revenue-from-woocommerce-stripe-gateway/show-net-revenue-from-woocommerce-stripe-gateway.php 85% from 13 tests

The entry point to "Show Net Revenue from WooCommerce Stripe Gateway" version 1.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected114 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11551114

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin