84% disable-theme-and-plugin-auto-update-emails

Code Review | Disable Theme and Plugin Auto-Update Emails

WordPress plugin Disable Theme and Plugin Auto-Update Emails scored84%from 54 tests.

About plugin

  • Plugin page: disable-theme-and...
  • Plugin version: 2.0.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Aug 14, 2020
  • Latest release: Oct 25, 2023
  • Number of updates: 23
  • Update frequency: every 50.7 days
  • Top authors: KZeni (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

10,000+ active /92,783 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.15ms] Passed 4 tests

Server-side resources used by Disable Theme and Plugin Auto-Update Emails
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.66 ▼5.17
Dashboard /wp-admin3.34 ▲0.0346.63 ▼4.56
Posts /wp-admin/edit.php3.39 ▲0.0345.32 ▲2.94
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.44 ▼13.81
Media Library /wp-admin/upload.php3.26 ▲0.0336.63 ▲3.64

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Theme and Plugin Auto-Update Emails
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.021.82 ▲0.1841.61 ▼3.07
Dashboard /wp-admin2,195 ▲185.63 ▲0.0384.27 ▼5.8237.62 ▲2.42
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0133.93 ▼5.4336.49 ▼2.92
Add New Post /wp-admin/post-new.php1,526 ▼323.59 ▲0.36662.77 ▲58.3661.13 ▼1.30
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.04107.17 ▼0.7646.27 ▲1.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/disable-theme-and-plugin-auto-update-emails/disable-theme-plugin-update-emails.php:16

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: theme update, disable, email, updates, notifications...

disable-theme-and-plugin-auto-update-emails/disable-theme-plugin-update-emails.php 85% from 13 tests

Analyzing the main PHP file in "Disable Theme and Plugin Auto-Update Emails" version 2.0.5
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 251 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("disable-theme-and-plugin-auto-update-emails.php" instead of "disable-theme-plugin-update-emails.php")

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
Success! There were no dangerous files found in this plugin171 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11130171

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.04MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png42.79KB48.67KB0.00%