100% hide-updates

Code Review | Hide Updates

WordPress plugin Hide Updates scored 100% from 54 tests.

About plugin

  • Plugin page: hide-updates
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 5.8.1
  • First release: Jun 27, 2017
  • Latest release: Jul 21, 2021
  • Number of updates: 23
  • Update frequency: every 64.6 days
  • Top authors: Upperdog (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

5,000+ active / 20,810 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼145.08ms] Passed 4 tests

Server-side resources used by Hide Updates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0135.30 ▲2.46
Dashboard /wp-admin3.07 ▲0.0239.23 ▼4.35
Posts /wp-admin/edit.php3.12 ▲0.0244.57 ▲1.63
Add New Post /wp-admin/post-new.php5.43 ▼0.0086.03 ▼576.26
Media Library /wp-admin/upload.php3.02 ▲0.0131.08 ▼1.32

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Hide Updates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.86 ▲0.388.72 ▼0.2141.07 ▼9.13
Dashboard /wp-admin2,989 ▲556.17 ▲0.21137.46 ▼6.80109.94 ▲9.52
Posts /wp-admin/edit.php2,739 ▲32.69 ▲0.0264.22 ▼0.5488.46 ▲1.51
Add New Post /wp-admin/post-new.php1,500 ▼018.62 ▼0.04362.48 ▼20.63102.84 ▼9.90
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.01148.10 ▲1.47112.23 ▼1.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: update, plugin updates, updates, core updates, notices...

hide-updates/hide-updates.php 92% from 13 tests

The main PHP file in "Hide Updates" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1194170
CSS11014

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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%
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
No PNG files were detected