84% disable-core-update-email

Code Review | Disable WordPress Core Update Email

WordPress plugin Disable WordPress Core Update Email scored 84% from 54 tests.

About plugin

  • Plugin page: disable-core-upda...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.1
  • WordPress version: 6.3.1
  • First release: May 5, 2016
  • Latest release: May 5, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: alexmoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 5,692 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.16ms] Passed 4 tests

This is a short check of server-side resources used by Disable WordPress Core Update Email
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.63 ▼4.87
Dashboard /wp-admin3.31 ▲0.0043.15 ▼3.56
Posts /wp-admin/edit.php3.36 ▲0.0047.21 ▼1.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.54 ▼10.23
Media Library /wp-admin/upload.php3.23 ▲0.0034.77 ▲1.73

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Disable WordPress Core Update Email
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.22 ▼1.151.87 ▲0.0440.31 ▼5.91
Dashboard /wp-admin2,206 ▲185.87 ▲0.97106.17 ▲3.4641.14 ▲1.01
Posts /wp-admin/edit.php2,086 ▼01.99 ▲0.0139.50 ▲0.3137.11 ▲3.04
Add New Post /wp-admin/post-new.php1,533 ▲423.27 ▲5.14602.18 ▼20.1851.37 ▼10.18
Media Library /wp-admin/upload.php1,391 ▲94.21 ▼0.0197.52 ▼0.5744.49 ▼0.38

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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-core-update-email/disable-wordpress-core-update-email.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
4 plugin tags: email, core update, updates, notifications

disable-core-update-email/disable-wordpress-core-update-email.php 85% from 13 tests

The main PHP script in "Disable WordPress Core Update Email" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-core-update-email.php" instead of "disable-wordpress-core-update-email.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15163

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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
There are no PNG files in this plugin