84% mailup-auto-subscribtion

Code Review | MailUp Auto Subscription

WordPress plugin MailUp Auto Subscription scored84%from 54 tests.

About plugin

  • Plugin page: mailup-auto-subsc...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 22, 2015
  • Latest release: Nov 5, 2022
  • Number of updates: 16
  • Update frequency: every 172.2 days
  • Top authors: ghera74 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,512 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.72ms] Passed 4 tests

A check of server-side resources used by MailUp Auto Subscription
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0054.04 ▲13.77
Dashboard /wp-admin3.31 ▲0.0147.52 ▼0.61
Posts /wp-admin/edit.php3.36 ▲0.0041.81 ▼7.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.40 ▲1.14
Media Library /wp-admin/upload.php3.23 ▲0.0032.51 ▼0.37

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by MailUp Auto Subscription
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.17 ▼0.281.66 ▼0.0343.97 ▼4.31
Dashboard /wp-admin2,211 ▲345.68 ▲0.0682.65 ▼20.2937.93 ▼7.47
Posts /wp-admin/edit.php2,116 ▲161.98 ▼0.0437.66 ▲2.9238.56 ▲3.78
Add New Post /wp-admin/post-new.php1,539 ▲223.13 ▲4.88647.58 ▼0.1558.81 ▼13.89
Media Library /wp-admin/upload.php1,419 ▲194.23 ▲0.0093.29 ▼5.4543.34 ▲0.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/mailup-auto-subscribtion/includes/mas-admin-form.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailup-auto-subscribtion/mailup-auto-subscription.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailup-auto-subscribtion/includes/mas-register-form.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (MailUp Auto Subscription - Options page), #2 (MailUp Auto Subscription - Worpress register form)
You can look at the official readme.txt

mailup-auto-subscribtion/mailup-auto-subscription.php 92% from 13 tests

"MailUp Auto Subscription" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mailup-auto-subscribtion.php" instead of "mailup-auto-subscription.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected222 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36419151
PO File1275371

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.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.12MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png82.79KB22.26KB▼ 73.11%
screenshot-2.png35.27KB8.65KB▼ 75.47%