89% minutemailer-subscribe

Code Review | Minutemailer Subscribe

WordPress plugin Minutemailer Subscribe scored 89% from 54 tests.

About plugin

  • Plugin page: minutemailer-subs...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2016
  • Latest release: Jul 14, 2020
  • Number of updates: 15
  • Update frequency: every 104.9 days
  • Top authors: minutemailer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,439 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Minutemailer Subscribe
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.01 ▲1.92
Dashboard /wp-admin3.32 ▲0.0242.58 ▼5.64
Posts /wp-admin/edit.php3.37 ▲0.0243.44 ▼5.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.54 ▼0.78
Media Library /wp-admin/upload.php3.25 ▲0.0232.97 ▼3.01
Minutemailer /wp-admin/options-general.php?page=minutemailer_plugin3.2129.56

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_minutemailer

Browser metrics Passed 4 tests

An overview of browser requirements for Minutemailer Subscribe
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.69 ▼0.865.61 ▲3.6443.66 ▲3.69
Dashboard /wp-admin2,207 ▲195.85 ▲0.96101.58 ▲0.2141.76 ▼3.82
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0333.77 ▼1.6934.38 ▼2.21
Add New Post /wp-admin/post-new.php1,545 ▲1118.50 ▼4.60620.26 ▼62.4350.43 ▼3.29
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0493.51 ▼9.9042.33 ▼2.76
Minutemailer /wp-admin/options-general.php?page=minutemailer_plugin7981.9822.6724.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_minutemailer
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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 | 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 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

minutemailer-subscribe/minutemailer-subscribe.php 92% from 13 tests

The main PHP script in "Minutemailer Subscribe" version 1.2.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 276 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin396 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP44738244
PO File22939109
JavaScript17639
SVG1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png1.29KB0.67KB▼ 48.26%
assets/icon-256x256.png2.34KB1.25KB▼ 46.70%