89% extra-checkout-fee-woo

Code Review | Extra Checkout Fee - Woo

WordPress plugin Extra Checkout Fee - Woo scored89%from 54 tests.

About plugin

  • Plugin page: extra-checkout-fe...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.4.2
  • WordPress version: 6.3.1
  • First release: Aug 11, 2020
  • Latest release: Aug 11, 2020
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: wpboss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.42ms] Passed 4 tests

Analyzing server-side resources used by Extra Checkout Fee - Woo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0747.05 ▲1.63
Dashboard /wp-admin3.37 ▲0.0251.56 ▼27.51
Posts /wp-admin/edit.php3.48 ▲0.1351.54 ▲5.79
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.66 ▼6.14
Media Library /wp-admin/upload.php3.29 ▲0.0639.71 ▲2.35

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Extra Checkout Fee - Woo: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.23 ▼0.011.86 ▼0.4444.15 ▼11.43
Dashboard /wp-admin2,192 ▲155.62 ▲0.0187.75 ▼7.6342.26 ▼7.38
Posts /wp-admin/edit.php2,097 ▼32.02 ▼0.0236.21 ▼1.0533.57 ▲3.06
Add New Post /wp-admin/post-new.php1,526 ▼020.95 ▼2.63689.18 ▲26.3156.11 ▲5.33
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.08108.33 ▲6.3748.90 ▲3.82

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === extra-checkout-fee-woo === )
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in extra-checkout-fee-woo/assets to your readme.txt
The official readme.txt is a good inspiration

extra-checkout-fee-woo/extra-checkout-fee.php 85% from 13 tests

"Extra Checkout Fee - Woo" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("extra-checkout-fee-woo.php" instead of "extra-checkout-fee.php")
  • 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
Success! There were no dangerous files found in this plugin243 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10115470243

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.14
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected