84% disable-plugin-update-emails

Code Review | Disable Plugin Update Emails

WordPress plugin Disable Plugin Update Emails scored 84% from 54 tests.

About plugin

  • Plugin page: disable-plugin-up...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.0
  • WordPress version: 6.3.1
  • First release: Aug 21, 2020
  • Latest release: Oct 26, 2022
  • Number of updates: 11
  • Update frequency: every 72.6 days
  • Top authors: jerryrcole (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 769 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
Installer ran successfully

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

Server-side resources used by Disable Plugin Update Emails
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0134.59 ▼5.86
Dashboard /wp-admin3.31 ▲0.0144.64 ▼5.09
Posts /wp-admin/edit.php3.36 ▲0.0045.65 ▼0.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.58 ▲3.40
Media Library /wp-admin/upload.php3.23 ▲0.0036.23 ▲0.36

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Disable Plugin Update Emails
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.51 ▲0.201.65 ▼0.1541.82 ▼10.08
Dashboard /wp-admin2,206 ▲174.85 ▼0.10107.92 ▼0.2042.63 ▼2.24
Posts /wp-admin/edit.php2,089 ▲181.99 ▼0.0339.55 ▲2.2034.26 ▼0.41
Add New Post /wp-admin/post-new.php1,545 ▲918.43 ▼4.76594.58 ▼80.7651.83 ▼12.15
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.0396.71 ▲0.6639.66 ▼5.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-plugin-update-emails/disable-plugin-update-emails.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: email, notifications, updates, plugin updates

disable-plugin-update-emails/disable-plugin-update-emails.php 92% from 13 tests

This is the main PHP file of "Disable Plugin Update Emails" 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
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 195 characters long)

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
No dangerous file extensions were detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1293

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
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