74% mail-subscribe-list

Code Review | Mail Subscribe List

WordPress plugin Mail Subscribe List scored74%from 54 tests.

About plugin

  • Plugin page: mail-subscribe-list
  • Plugin version: 2.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 3, 2012
  • Latest release: Aug 8, 2023
  • Number of updates: 89
  • Update frequency: every 43.8 days
  • Top authors: webfwd (66.29%)noahkagan (19.1%)grimmdude (16.85%)

Code review

54 tests

User reviews

59 reviews

Install metrics

6,000+ active /175,452 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.86ms] Passed 4 tests

This is a short check of server-side resources used by Mail Subscribe List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.08 ▲2.53
Dashboard /wp-admin3.35 ▲0.0554.76 ▲4.43
Posts /wp-admin/edit.php3.40 ▲0.0549.75 ▼7.12
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.10 ▼14.71
Media Library /wp-admin/upload.php3.28 ▲0.0539.70 ▼0.14

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

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

Browser metrics Passed 4 tests

Mail Subscribe List: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.10 ▼0.251.95 ▲0.1742.90 ▼3.46
Dashboard /wp-admin2,206 ▲295.54 ▼0.1192.07 ▼10.5182.41 ▲40.08
Posts /wp-admin/edit.php2,114 ▲141.98 ▼0.0435.84 ▼5.0537.35 ▼2.70
Add New Post /wp-admin/post-new.php1,690 ▲16421.77 ▼1.19726.94 ▲47.4148.69 ▼8.85
Media Library /wp-admin/upload.php1,414 ▲144.24 ▲0.15102.28 ▼19.0475.71 ▲26.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_sml
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/mail-subscribe-list/index.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mail-subscribe-list/sml.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
You can take inspiration from this readme.txt

mail-subscribe-list/sml.php 92% from 13 tests

"Mail Subscribe List" version 2.1.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("mail-subscribe-list.php" instead of "sml.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin374 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP211742374

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
webfwdlogo.png7.50KB3.38KB▼ 54.87%
sml-admin-icon.png0.34KB0.29KB▼ 14.86%