78% wp-jv-custom-email-settings

Code Review | WP JV Custom Email Settings

WordPress plugin WP JV Custom Email Settings scored78%from 54 tests.

About plugin

  • Plugin page: wp-jv-custom-emai...
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 14, 2014
  • Latest release: Feb 16, 2020
  • Number of updates: 71
  • Update frequency: every 28.4 days
  • Top authors: janosver (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /4,757 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼7.68ms] Passed 4 tests

A check of server-side resources used by WP JV Custom Email Settings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1840.87 ▲0.26
Dashboard /wp-admin3.49 ▲0.1550.03 ▼14.79
Posts /wp-admin/edit.php3.60 ▲0.2551.43 ▲4.56
Add New Post /wp-admin/post-new.php6.09 ▲0.2189.80 ▼20.20
Media Library /wp-admin/upload.php3.41 ▲0.1939.49 ▲4.01
JV CES Email Log /wp-admin/edit.php?page=wp_jv_ces_notification_log_menu_page3.3632.79

Server storage [IO: ▲0.12MB] [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: 12 new files
Database: 1 new table, 7 new options
New tables
wp_jv_notification_log
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
wp_jv_ces_db_version
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP JV Custom Email Settings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5214.24 ▼0.041.71 ▲0.0841.83 ▼1.06
Dashboard /wp-admin2,204 ▲275.60 ▼0.0088.36 ▼6.6340.35 ▼0.57
Posts /wp-admin/edit.php2,109 ▲91.99 ▼0.0136.35 ▼1.5535.82 ▲1.17
Add New Post /wp-admin/post-new.php6,403 ▲4,87427.46 ▲3.79963.85 ▲287.5376.99 ▲23.48
Media Library /wp-admin/upload.php1,409 ▲94.19 ▼0.01103.49 ▼3.9242.22 ▼7.99
JV CES Email Log /wp-admin/edit.php?page=wp_jv_ces_notification_log_menu_page9922.0525.1526.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=wp_jv_ces_notification_log_menu_page
    • > Notice in wp-admin/includes/class-wp-list-table.php+1615
    Trying to access array offset on value of type null

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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-jv-custom-email-settings/wp-jv-custom-email-settings.php
    • > /wp-content/plugins/wp-jv-custom-email-settings/uninstall.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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-jv-custom-email-settings/wp-jv-custom-email-settings.php Passed 13 tests

The entry point to "WP JV Custom Email Settings" version 2.6 is a PHP file that has certain tags in its header comment area
86 characters long description:
Notify users about new posts published and customize your e-mail notification settings

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,285 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2118183778
PO File3251361464
JavaScript242743

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.00
▷ Minimum class complexity13.00
▷ Maximum class complexity17.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin