94% wp-updates-settings

Code Review | WP Updates Settings

WordPress plugin WP Updates Settings scored 94% from 54 tests.

About plugin

  • Plugin page: wp-updates-settings
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9
  • WordPress version: 5.8.1
  • First release: Jan 12, 2014
  • Latest release: Dec 21, 2017
  • Number of updates: 47
  • Update frequency: every 30.6 days
  • Top authors: Yslo (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active / 18,516 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼141.43ms] Passed 4 tests

A check of server-side resources used by WP Updates Settings
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0736.70 ▲5.85
Dashboard /wp-admin3.15 ▲0.1043.16 ▲0.41
Posts /wp-admin/edit.php3.24 ▲0.1345.23 ▼1.77
Add New Post /wp-admin/post-new.php5.51 ▲0.0887.89 ▼569.20
Media Library /wp-admin/upload.php3.09 ▲0.0936.55 ▲4.84
Updates /wp-admin/options-general.php?page=wp-updates-settings/wp-updates-settings.php3.0528.81

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options
yslo_wpus_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Updates Settings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.00 ▲0.1110.80 ▲0.2644.04 ▼5.11
Dashboard /wp-admin2,978 ▲445.93 ▲0.01130.18 ▼14.69115.18 ▼4.05
Posts /wp-admin/edit.php2,744 ▲52.73 ▲0.0261.93 ▼3.5393.65 ▲4.39
Add New Post /wp-admin/post-new.php1,879 ▼17819.14 ▼0.35378.42 ▼3.34102.16 ▼8.41
Media Library /wp-admin/upload.php1,812 ▲615.06 ▲0.06150.60 ▲4.40121.53 ▼0.58
Updates /wp-admin/options-general.php?page=wp-updates-settings/wp-updates-settings.php1,3712.2255.5878.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wp-updates-settings/wp-updates-settings.php
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp-updates-settings/wp-updates-settings.php
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: updates, background, automatic, plugin, theme...

wp-updates-settings/wp-updates-settings.php Passed 13 tests

Analyzing the main PHP file in "WP Updates Settings" version 1.1.4
65 characters long description:
Configure WordPress updates settings through UI (User Interface).

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
Everything looks great! No dangerous files found in this plugin479 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP38030306
PO File13337167
CSS2006

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin