90% simple-email-queue

Code Review | Simple Email Queue

WordPress plugin Simple Email Queue scored90%from 54 tests.

About plugin

  • Plugin page: simple-email-queue
  • Plugin version: 1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2015
  • Latest release: Apr 4, 2019
  • Number of updates: 13
  • Update frequency: every 98.0 days
  • Top authors: dimadin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,439 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.51ms] Passed 4 tests

This is a short check of server-side resources used by Simple Email Queue
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.43 ▼3.85
Dashboard /wp-admin3.34 ▲0.0457.72 ▼1.64
Posts /wp-admin/edit.php3.39 ▲0.0454.17 ▼2.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.87 ▼27.27
Media Library /wp-admin/upload.php3.26 ▲0.0438.52 ▼4.12

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Simple Email Queue: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.09 ▼0.591.88 ▲0.2344.30 ▲3.73
Dashboard /wp-admin2,192 ▲125.51 ▼0.1983.87 ▼5.4742.52 ▲1.46
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0344.38 ▲2.3836.29 ▼1.10
Add New Post /wp-admin/post-new.php1,549 ▲1823.20 ▼0.11672.23 ▼42.9557.45 ▼1.93
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.0497.60 ▲1.4145.03 ▼1.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: queue, email, emails limits, email queue, sending limits...

simple-email-queue/simple-email-queue.php 92% from 13 tests

The main PHP file in "Simple Email Queue" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin707 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP72021,006648
XML2101359

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.50
▷ Minimum class complexity2.00
▷ Maximum class complexity36.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods40
▷ Static methods1435.00%
▷ Public methods3485.00%
▷ Protected methods615.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin