100% stop-auto-update-emails

Code Review | Stop Auto Update Emails

WordPress plugin Stop Auto Update Emails scored 100% from 54 tests.

About plugin

  • Plugin page: stop-auto-update-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8
  • WordPress version: 5.8.1
  • First release: Nov 16, 2021
  • Latest release: Nov 16, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: qrac (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 11 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼144.82ms] Passed 4 tests

A check of server-side resources used by Stop Auto Update Emails
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1446.44 ▲18.31
Dashboard /wp-admin3.09 ▲0.0452.58 ▼13.60
Posts /wp-admin/edit.php3.14 ▲0.0451.17 ▼1.35
Add New Post /wp-admin/post-new.php5.45 ▲0.0299.47 ▼566.99
Media Library /wp-admin/upload.php3.03 ▲0.0340.51 ▲2.68
Auto update notification /wp-admin/options-general.php?page=stop-auto-update-emails-settings3.0035.67

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Stop Auto Update Emails
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲11215.67 ▲0.1211.90 ▼0.9350.67 ▼9.49
Dashboard /wp-admin2,975 ▲415.88 ▼0.10169.73 ▼22.13111.12 ▼23.90
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0172.24 ▲3.1294.58 ▼8.99
Add New Post /wp-admin/post-new.php3,637 ▲1,95414.99 ▼1.30533.40 ▲99.01116.05 ▲0.59
Media Library /wp-admin/upload.php1,812 ▲55.04 ▲0.02172.54 ▲7.52124.53 ▼10.12
Auto update notification /wp-admin/options-general.php?page=stop-auto-update-emails-settings1,0832.0965.5894.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: emails, update, notification, stop, plugins...

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

The entry point to "Stop Auto Update Emails" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stop-auto-update-emails.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected195 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11511153
PO File1131542

PHP code Passed 2 tests

An short overview of 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.24
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin