89% disable-updates-comments

Code Review | Disable Update Notifications & Comments for WordPress

WordPress plugin Disable Update Notifications & Comments for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: disable-updates-c...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2019
  • Latest release: Jun 4, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: efficientninja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Disable Update Notifications & Comments for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.21 ▼2.46
Dashboard /wp-admin3.33 ▲0.0250.35 ▼7.42
Posts /wp-admin/edit.php3.38 ▲0.0253.87 ▲2.33
Add New Post /wp-admin/post-new.php5.91 ▲0.02102.31 ▼1.73
Media Library /wp-admin/upload.php3.25 ▲0.0242.53 ▲3.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Update Notifications & Comments for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.40 ▲0.051.62 ▼0.1446.34 ▲3.15
Dashboard /wp-admin2,216 ▲365.65 ▼0.0383.74 ▼7.9951.35 ▲5.96
Posts /wp-admin/edit.php2,121 ▲212.02 ▼0.0337.51 ▼1.0136.29 ▲0.32
Add New Post /wp-admin/post-new.php1,541 ▲917.40 ▼5.95673.09 ▲15.2261.42 ▲8.44
Media Library /wp-admin/upload.php1,415 ▲184.32 ▲0.1095.61 ▼6.6446.86 ▲2.40

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: disable update notifications in wordpress, hide update notification, hide comments options, permanently remove comments, disable updates

disable-updates-comments/disable-update-notifications-and-comments-for-wp.php 85% from 13 tests

The main file in "Disable Update Notifications & Comments for WordPress" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disable-updates-comments.php" instead of "disable-update-notifications-and-comments-for-wp.php")
  • Description: The description should be shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected160 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP52930154
CSS2226

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions14
▷ Named functions14100.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 were not PNG files found in your plugin