74% mailify

Code Review | Mailify

WordPress plugin Mailify scored74%from 54 tests.

About plugin

  • Plugin page: mailify
  • Plugin version: 1.4.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Nov 2, 2015
  • Latest release: Nov 8, 2022
  • Number of updates: 41
  • Update frequency: every 63.1 days
  • Top authors: sarbacanesoftware (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /4,881 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Mailify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.31 ▲4.69
Dashboard /wp-admin3.33 ▲0.0344.88 ▼3.39
Posts /wp-admin/edit.php3.38 ▲0.0246.24 ▲0.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.47 ▼0.06
Media Library /wp-admin/upload.php3.25 ▲0.0234.02 ▲3.04
Mailify /wp-admin/admin.php?page=sarbacane3.2731.66
Connection /wp-admin/admin.php?page=wp_interconnection3.2731.35
Configuration /wp-admin/admin.php?page=wp_lists_sync3.2733.15

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 84 new files
Database: 2 new tables, 7 new options
New tables
wp_sd_updates
wp_sd_subscribers
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
sarbacane_news_registration_button

Browser metrics Passed 4 tests

Mailify: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12013.67 ▼0.721.91 ▲0.1841.95 ▼4.65
Dashboard /wp-admin2,236 ▲454.93 ▼0.93105.99 ▼2.0277.66 ▲32.14
Posts /wp-admin/edit.php2,125 ▲332.00 ▼0.0037.84 ▲0.7536.41 ▲3.63
Add New Post /wp-admin/post-new.php1,551 ▲2723.05 ▼0.06759.01 ▲114.5462.64 ▲5.36
Media Library /wp-admin/upload.php1,415 ▲304.19 ▲0.0093.92 ▼6.8564.01 ▲21.77
Mailify /wp-admin/admin.php?page=sarbacane9562.1422.6836.08
Connection /wp-admin/admin.php?page=wp_interconnection8922.0227.1432.79
Configuration /wp-admin/admin.php?page=wp_lists_sync9472.1524.5535.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_sd_subscribers
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailify/trunk/class.sarbacane-newsletterwidget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailify/class.sarbacane-newsletterwidget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #2 in mailify/assets to your readme.txt
You can look at the official readme.txt

mailify/sarbacane.php 92% from 13 tests

The principal PHP file in "Mailify" v. 1.4.15 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mailify.php" instead of "sarbacane.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,249 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP14103321,927
CSS6923546
PO File2188234528
JavaScript3378248

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity27.00
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity4.87
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods94
▷ Static methods44.26%
▷ Public methods5659.57%
▷ Protected methods00.00%
▷ Private methods3840.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.29MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/images/cross.png1.02KB0.64KB▼ 37.27%
trunk/images/bin.png1.60KB0.45KB▼ 72.16%
images/arrow-down.png1.07KB0.25KB▼ 76.23%
trunk/images/sd.png50.48KB11.58KB▼ 77.07%
trunk/images/arrow-down.png1.07KB0.25KB▼ 76.23%