74% mail-picker

Code Review | Newsletter, Email Marketing, Email Subscriber - Mail Picker

WordPress plugin Newsletter, Email Marketing, Email Subscriber - Mail Picker scored74%from 54 tests.

About plugin

  • Plugin page: mail-picker
  • Plugin version: 1.0.13
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 12, 2020
  • Latest release: Apr 15, 2023
  • Number of updates: 41
  • Update frequency: every 23.1 days
  • Top authors: pickplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /962 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.33MB] [CPU: ▼1.22ms] Passed 4 tests

Server-side resources used by Newsletter, Email Marketing, Email Subscriber - Mail Picker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3436.04 ▼0.90
Dashboard /wp-admin3.63 ▲0.3348.82 ▲2.03
Posts /wp-admin/edit.php3.75 ▲0.4047.06 ▼4.40
Add New Post /wp-admin/post-new.php6.22 ▲0.33116.34 ▲24.70
Media Library /wp-admin/upload.php3.54 ▲0.3134.02 ▼1.61
Subscribers form /wp-admin/edit.php?post_type=subscriber_form3.6145.71
Subscribers source /wp-admin/edit.php?post_type=subscriber_source3.6139.73
Subscriber lists /wp-admin/edit-tags.php?taxonomy=subscriber_list&post_type=subscriber3.6838.83
Mail campaign /wp-admin/edit.php?post_type=mail_campaign3.6139.00
Mail Picker /wp-admin/admin.php?page=mail_picker3.6440.12
Mail templates /wp-admin/edit.php?post_type=mail_template3.6137.40
Subscribers /wp-admin/edit.php?post_type=subscriber3.6137.49

Server storage [IO: ▲4.18MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: 1 new table, 6 new options
New tables
wp_mail_picker_postmeta
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Newsletter, Email Marketing, Email Subscriber - Mail Picker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,989 ▲25415.01 ▲0.791.60 ▼0.4136.65 ▼5.12
Dashboard /wp-admin2,392 ▲2006.49 ▲1.54125.42 ▲20.1741.61 ▲0.70
Posts /wp-admin/edit.php2,301 ▲2123.34 ▲1.3347.40 ▲5.4631.42 ▼7.26
Add New Post /wp-admin/post-new.php1,556 ▲2723.34 ▲0.27614.73 ▲1.4032.82 ▼17.59
Media Library /wp-admin/upload.php1,440 ▲524.11 ▼0.1080.91 ▼12.2940.55 ▼1.80
Subscribers form /wp-admin/edit.php?post_type=subscriber_form1,2863.4345.1027.13
Subscribers source /wp-admin/edit.php?post_type=subscriber_source1,2703.4552.6030.23
Subscriber lists /wp-admin/edit-tags.php?taxonomy=subscriber_list&post_type=subscriber1,4703.1440.8126.24
Mail campaign /wp-admin/edit.php?post_type=mail_campaign1,2973.3644.0627.96
Mail Picker /wp-admin/admin.php?page=mail_picker3,1606.12109.4742.20
Mail templates /wp-admin/edit.php?post_type=mail_template1,2653.3941.9829.40
Subscribers /wp-admin/edit.php?post_type=subscriber1,2993.5043.2127.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_mail_picker_postmeta
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > Composer autoloader not found. Execute 'composer install' in the project folder first.

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #7 (Screenshot 7), #8 (Screenshot 8), #9 (Screenshot 9), #10 (Screenshot 10)
Please take inspiration from this readme.txt

mail-picker/mail-picker.php Passed 13 tests

The main PHP script in "Newsletter, Email Marketing, Email Subscriber - Mail Picker" version 1.0.13 is automatically included on every request by WordPress
43 characters long description:
Send newsletter and build email subscriber.

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 plugin24,320 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP206,2711,55511,083
SVG4009,251
CSS41,664943,779
JavaScript414733207

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity105.78
▷ Minimum class complexity1.00
▷ Maximum class complexity641.00
Average method complexity11.20
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods91
▷ Static methods00.00%
▷ Public methods8694.51%
▷ Protected methods00.00%
▷ Private methods55.49%
Functions139
▷ Named functions13798.56%
▷ Anonymous functions21.44%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.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
8 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/css/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%
assets/admin/css/images/tile.png2.75KB0.10KB▼ 96.31%
assets/admin/css/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
assets/admin/css/images/ui-icons_cc0000_256x240.png4.52KB4.18KB▼ 7.56%
assets/admin/css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%