84% disable-complete-wp-updates

Code Review | Disable Complete WP Updates

WordPress plugin Disable Complete WP Updates scored84%from 54 tests.

About plugin

  • Plugin page: disable-complete-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 31, 2018
  • Latest release: Apr 1, 2018
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: nipun21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /554 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.92ms] Passed 4 tests

An overview of server-side resources used by Disable Complete WP Updates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0631.86 ▼10.53
Dashboard /wp-admin3.35 ▲0.0445.10 ▼8.01
Posts /wp-admin/edit.php3.38 ▲0.0251.35 ▼2.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.73 ▼18.15
Media Library /wp-admin/upload.php3.27 ▲0.0431.22 ▼2.99

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Disable Complete WP Updates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,775 ▲1813.67 ▼0.751.78 ▼0.3942.30 ▼5.60
Dashboard /wp-admin2,195 ▲44.86 ▼1.05102.20 ▲1.4739.39 ▼2.21
Posts /wp-admin/edit.php2,078 ▼142.01 ▼0.0450.37 ▲8.9941.66 ▲4.22
Add New Post /wp-admin/post-new.php1,529 ▼523.33 ▲0.21649.22 ▼35.0051.40 ▼7.31
Media Library /wp-admin/upload.php1,374 ▼144.25 ▲0.0796.20 ▼13.8942.36 ▼5.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-complete-wp-updates/Disable-Complete-Updates.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: disable plugins updates, disable core updates, disable theme updates

disable-complete-wp-updates/Disable-Complete-Updates.php 92% from 13 tests

The main file in "Disable Complete WP Updates" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("disable-complete-wp-updates.php" instead of "Disable-Complete-Updates.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16213399

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin