74% email-scheduling

Code Review | Email Scheduling

WordPress plugin Email Scheduling scored74%from 54 tests.

About plugin

  • Plugin page: email-scheduling
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8+
  • WordPress version: 6.3.1
  • First release: May 18, 2022
  • Latest release: May 18, 2022
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: krunal265 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,049 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼37.95ms] Passed 4 tests

This is a short check of server-side resources used by Email Scheduling
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.24 ▲3.31
Dashboard /wp-admin3.03 ▼0.2722.42 ▼35.15
Posts /wp-admin/edit.php3.04 ▼0.3226.02 ▼27.03
Add New Post /wp-admin/post-new.php3.04 ▼2.8524.17 ▼75.34
Media Library /wp-admin/upload.php3.04 ▼0.1922.43 ▼14.29

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Email Scheduling
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3014.14 ▼0.581.90 ▼0.1545.82 ▲1.98
Dashboard /wp-admin2,225 ▲485.62 ▲0.0592.98 ▼2.2742.37 ▲0.01
Posts /wp-admin/edit.php2,130 ▲301.99 ▼0.0440.02 ▲2.1136.75 ▼2.27
Add New Post /wp-admin/post-new.php1,548 ▲2023.30 ▲0.08657.72 ▼53.2951.88 ▼16.94
Media Library /wp-admin/upload.php1,427 ▲334.27 ▲0.04104.19 ▼5.1744.38 ▼0.68
Bulk Email /wp-admin/emsc-template.php260.420.1117.97
Email Test /wp-admin/emsc-email-test.php260.420.116.63

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
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/emsc-template.php
    • > Network (severe)
    wp-admin/emsc-template.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/emsc-email-test.php
    • > Network (severe)
    wp-admin/emsc-email-test.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

email-scheduling/email-scheduling.php Passed 13 tests

This is the main PHP file of "Email Scheduling" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
116 characters long description:
This plugin include cronjob to send email to the users and provide WYSIWYG editor to generate custom email template.

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
Success! There were no dangerous files found in this plugin349 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP14198211
JavaScript21274
CSS28063
Markdown1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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
No PNG files were detected