84% maillister

Code Review | MailLister

WordPress plugin MailLister scored84%from 54 tests.

About plugin

  • Plugin page: maillister
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Apr 5, 2022
  • Latest release: Jun 22, 2022
  • Number of updates: 4
  • Update frequency: every 19.5 days
  • Top authors: ofeknakar01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /520 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.90ms] Passed 4 tests

An overview of server-side resources used by MailLister
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1039.57 ▼2.73
Dashboard /wp-admin3.42 ▲0.1145.61 ▼3.76
Posts /wp-admin/edit.php3.47 ▲0.1150.17 ▲2.12
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.85 ▼7.22
Media Library /wp-admin/upload.php3.34 ▲0.1142.39 ▲11.18
Mail Lister /wp-admin/admin.php?page=email-lister-page3.3132.26
Send Mails /wp-admin/admin.php?page=email-lister-page-send3.3133.94

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for MailLister
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲17213.71 ▼0.671.89 ▲0.1545.64 ▲2.78
Dashboard /wp-admin2,258 ▲665.85 ▲0.8999.42 ▼24.3671.36 ▲20.60
Posts /wp-admin/edit.php2,156 ▲642.01 ▲0.0439.25 ▲0.8934.41 ▲0.49
Add New Post /wp-admin/post-new.php1,566 ▲5222.66 ▲5.13653.25 ▼19.4229.40 ▼25.51
Media Library /wp-admin/upload.php1,446 ▲554.19 ▼0.0197.77 ▼6.3678.30 ▲33.30
Mail Lister /wp-admin/admin.php?page=email-lister-page1,1632.0725.8576.86
Send Mails /wp-admin/admin.php?page=email-lister-page-send8802.0524.2737.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=email-lister-page-send
    • > Network (severe)
    wp-content/plugins/maillister//listerD.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=email-lister-page-send
    • > Network (severe)
    wp-content/plugins/maillister//jquery.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=email-lister-page
    • > Javascript (severe) in unknown
    /wp-content/plugins/maillister/js/adminEmails.js?ver=6.3.1 157:61 Uncaught TypeError: Cannot read properties of null (reading 'split')
    • > GET request to /wp-admin/admin.php?page=email-lister-page-send
    • > Javascript (severe) in unknown
    /wp-content/plugins/maillister/js/ad.js?ver=6.3.1 5:51 Uncaught TypeError: Cannot read properties of null (reading 'value')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: mail, subscriber-list, email, newsletter, email-list...

maillister/MailLister.php 85% from 13 tests

The principal PHP file in "MailLister" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("maillister.php" instead of "MailLister.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,475 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS2536664
PHP119312457
JavaScript412324337
SVG20017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
MapleWP.png4.17KB2.32KB▼ 44.48%