79% disable-wp-core-updates-advance

Code Review | Disable WP Core Updates Advance

WordPress plugin Disable WP Core Updates Advance scored79%from 54 tests.

About plugin

  • Plugin page: disable-wp-core-u...
  • 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 22, 2016
  • Latest release: Jul 9, 2021
  • Number of updates: 9
  • Update frequency: every 204.9 days
  • Top authors: gr8nilay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,110 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼2.19MB] [CPU: ▼62.84ms] Passed 4 tests

This is a short check of server-side resources used by Disable WP Core Updates Advance
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.664.76 ▼45.14
Dashboard /wp-admin2.09 ▼1.475.27 ▼54.40
Posts /wp-admin/edit.php2.09 ▼1.597.62 ▼50.97
Add New Post /wp-admin/post-new.php2.09 ▼4.055.61 ▼100.83
Media Library /wp-admin/upload.php2.09 ▼1.405.91 ▼35.78

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Disable WP Core Updates Advance
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,774 ▲1314.28 ▼0.461.82 ▼0.0443.93 ▼3.34
Dashboard /wp-admin2,183 ▲35.66 ▲0.0487.10 ▼2.0737.96 ▼4.13
Posts /wp-admin/edit.php2,089 ▼112.04 ▼0.0138.48 ▼1.8033.26 ▼3.23
Add New Post /wp-admin/post-new.php1,533 ▲223.33 ▲0.27666.78 ▲48.9959.64 ▲10.61
Media Library /wp-admin/upload.php1,388 ▼154.13 ▼0.09106.44 ▲5.7345.49 ▼1.07

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
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/disable-wp-core-updates-advance/disable-wp-core-updates-advance.php+39
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === disable-wp-core-updates-advance === )
You can take inspiration from this readme.txt

disable-wp-core-updates-advance/disable-wp-core-updates-advance.php 92% from 13 tests

The main file in "Disable WP Core Updates Advance" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin25 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3133325

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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
There are no PNG files in this plugin