83% sparkle-email-scheduler

Code Review | Sparkle Email Scheduler

WordPress plugin Sparkle Email Scheduler scored83%from 54 tests.

About plugin

  • Plugin page: sparkle-email-sch...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2021
  • Latest release: Apr 2, 2023
  • Number of updates: 5
  • Update frequency: every 112.2 days
  • Top authors: sparklewpthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲0.55ms] Passed 4 tests

Analyzing server-side resources used by Sparkle Email Scheduler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0649.80 ▲5.16
Dashboard /wp-admin3.37 ▲0.0650.01 ▼3.44
Posts /wp-admin/edit.php3.42 ▲0.0650.87 ▲0.98
Add New Post /wp-admin/post-new.php5.95 ▲0.06100.53 ▲10.56
Media Library /wp-admin/upload.php3.29 ▲0.0637.33 ▼0.49

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Sparkle Email Scheduler
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3514.48 ▼0.171.88 ▼0.2143.65 ▼0.90
Dashboard /wp-admin2,209 ▲215.87 ▲0.00105.06 ▼4.0741.20 ▲1.11
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0135.84 ▲0.4731.35 ▼4.10
Add New Post /wp-admin/post-new.php1,539 ▲2023.21 ▼0.34678.92 ▼1.0261.37 ▲11.30
Media Library /wp-admin/upload.php1,397 ▲94.24 ▼0.00105.72 ▼10.8747.47 ▼0.85

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 output text when accessed directly:
    • > /wp-content/plugins/sparkle-email-scheduler/includes/email-template/email-templates.php
    • > /wp-content/plugins/sparkle-email-scheduler/includes/email-template/ajax.php
    • > /wp-content/plugins/sparkle-email-scheduler/sparkle-email-scheduler.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: email scheduler, send mail, notification, email, email scheduler for woo...

sparkle-email-scheduler/sparkle-email-scheduler.php 77% from 13 tests

The main PHP file in "Sparkle Email Scheduler" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin574 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3106123518
JavaScript191056

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods842.11%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin