10% disable-wp-update

Code Review | Disable Wp Updates & Notifications

WordPress plugin Disable Wp Updates & Notifications scored10%from 54 tests.

About plugin

  • Plugin page: disable-wp-update
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Feb 21, 2017
  • Latest release: Sep 1, 2020
  • Number of updates: 9
  • Update frequency: every 142.9 days
  • Top authors: Abhay Raj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,308 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/disable-wp-update/disable-wp-update.php+17
    Function create_function() is deprecated

Server metrics [RAM: ▼1.93MB] [CPU: ▼54.49ms] Passed 4 tests

This is a short check of server-side resources used by Disable Wp Updates & Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.414.79 ▼36.82
Dashboard /wp-admin2.08 ▼1.235.53 ▼45.33
Posts /wp-admin/edit.php2.08 ▼1.286.66 ▼40.88
Add New Post /wp-admin/post-new.php2.08 ▼3.815.21 ▼94.93
Media Library /wp-admin/upload.php2.08 ▼1.154.99 ▼32.15

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Disable Wp Updates & Notifications
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,774 ▲1314.35 ▼0.021.61 ▼0.2241.61 ▼7.30
Dashboard /wp-admin2,183 ▲35.62 ▲0.0286.12 ▼5.0841.18 ▲1.88
Posts /wp-admin/edit.php2,089 ▼112.00 ▲0.0333.57 ▼3.6339.65 ▲1.38
Add New Post /wp-admin/post-new.php1,519 ▼922.98 ▼0.44626.21 ▼73.9948.33 ▼6.93
Media Library /wp-admin/upload.php1,385 ▼124.19 ▲0.0197.80 ▼6.9145.66 ▲1.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/disable-wp-update/disable-wp-update.php+17
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • 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
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-wp-update/disable-wp-update.php:17

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: disable wordpress updates advance, disable, disable wordpress core updates, disable updates, disable wordpress updates...

disable-wp-update/disable-wp-update.php Passed 13 tests

The principal PHP file in "Disable Wp Updates & Notifications" v. 1.3 is loaded by WordPress automatically on each request
94 characters long description:
Easy way to disable all wordpress, themes, plugins, core updates & notifications in wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121231

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.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 were not PNG files found in your plugin