90% woocommerce-payment-reminder

Code Review | WooCommerce Payment Reminder

WordPress plugin WooCommerce Payment Reminder scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-payme...
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2015
  • Latest release: Jun 29, 2015
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: nipoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /2,926 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.00MB] [CPU: ▼3.91ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Payment Reminder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.28 ▲1.07
Dashboard /wp-admin3.31 ▲0.0052.01 ▼5.24
Posts /wp-admin/edit.php3.36 ▲0.0049.25 ▼1.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.34 ▼9.91
Media Library /wp-admin/upload.php3.23 ▲0.0038.31 ▲4.67

Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Payment Reminder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.011.83 ▲0.1043.09 ▼1.87
Dashboard /wp-admin2,195 ▲155.55 ▼0.0982.54 ▼17.1938.75 ▼4.34
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0233.48 ▼3.8732.60 ▼4.08
Add New Post /wp-admin/post-new.php1,526 ▼023.02 ▼0.13676.37 ▲0.2266.69 ▲13.98
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.0495.68 ▼16.4045.04 ▼0.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • 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
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 shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: reminder, payment reminder, payment, wordpress, woocommerce

woocommerce-payment-reminder/index.php 92% from 13 tests

The main PHP script in "WooCommerce Payment Reminder" version 0.8 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-payment-reminder.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin190 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1169169
JavaScript10321

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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