83% wp-disable-updates

Code Review | WP Disables Updates

WordPress plugin WP Disables Updates scored83%from 54 tests.

About plugin

  • Plugin page: wp-disable-updates
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2016
  • Latest release: Nov 6, 2022
  • Number of updates: 31
  • Update frequency: every 71.1 days
  • Top authors: vinvin27 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /10,092 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by WP Disables Updates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.82 ▼2.25
Dashboard /wp-admin3.33 ▲0.0250.13 ▲1.56
Posts /wp-admin/edit.php3.38 ▲0.0251.09 ▲3.46
Add New Post /wp-admin/post-new.php5.91 ▲0.02100.06 ▲10.32
Media Library /wp-admin/upload.php3.25 ▲0.0240.53 ▲5.08
Disable Updates /wp-admin/options-general.php?page=id-disable-plugins3.2142.24

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Disables Updates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.58 ▼0.791.81 ▲0.1644.90 ▲0.99
Dashboard /wp-admin2,225 ▲224.87 ▼0.01104.75 ▼1.6539.94 ▼3.89
Posts /wp-admin/edit.php2,107 ▲72.01 ▼0.0335.13 ▼1.9234.60 ▲0.31
Add New Post /wp-admin/post-new.php1,548 ▲323.45 ▲0.39660.43 ▲66.7256.89 ▲7.97
Media Library /wp-admin/upload.php1,404 ▲14.24 ▲0.0994.61 ▼7.8841.90 ▼2.39
Disable Updates /wp-admin/options-general.php?page=id-disable-plugins8432.0527.0332.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 no errors were found, this is by no means 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 return non-empty strings:
    • > /wp-content/plugins/wp-disable-updates/disableupdates.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% 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
4 plugin tags: plugins, themes, disable, updates

wp-disable-updates/disableupdates.php 77% from 13 tests

"WP Disables Updates" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-disable-updates.php" instead of "disableupdates.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.2" instead of "3.0")

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
Good job! No executable or dangerous file extensions detected192 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12517113
PO File2233979

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.73
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin