80% disable-wp-all-updates-advance

Code Review | Disable WP All Updates Advance

WordPress plugin Disable WP All Updates Advance scored80%from 54 tests.

About plugin

  • Plugin page: disable-wp-all-up...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 21, 2016
  • Latest release: Jul 9, 2021
  • Number of updates: 10
  • Update frequency: every 184.4 days
  • Top authors: gr8nilay (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /2,189 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.93MB] [CPU: ▼62.83ms] Passed 4 tests

An overview of server-side resources used by Disable WP All Updates Advance
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.405.45 ▼39.72
Dashboard /wp-admin2.09 ▼1.265.46 ▼64.21
Posts /wp-admin/edit.php2.09 ▼1.276.34 ▼42.62
Add New Post /wp-admin/post-new.php2.09 ▼3.806.77 ▼104.76
Media Library /wp-admin/upload.php2.09 ▼1.145.32 ▼33.77

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
DWAUA_activated_on
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Disable WP All Updates Advance
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,749 ▲314.45 ▲0.151.87 ▲0.1843.99 ▲0.76
Dashboard /wp-admin2,169 ▼85.61 ▲0.0483.34 ▼19.6339.97 ▼4.51
Posts /wp-admin/edit.php2,075 ▼252.03 ▲0.0235.15 ▼1.2631.85 ▼5.41
Add New Post /wp-admin/post-new.php1,507 ▼2423.33 ▲0.14598.72 ▼58.9950.51 ▼12.69
Media Library /wp-admin/upload.php1,377 ▼204.19 ▼0.0096.74 ▼2.5844.99 ▲1.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/disable-wp-all-updates-advance/disable-wp-all-updates-advance.php+40
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === disable-wp-all-updates-advance === )
Please take inspiration from this readme.txt

disable-wp-all-updates-advance/disable-wp-all-updates-advance.php Passed 13 tests

This is the main PHP file of "Disable WP All Updates Advance" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This plugin disable your all WordPress updates on activation that includes core, themes, plugins

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin29 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3163629

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions3
▷ Named functions3100.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