90% hide-all-updates

Code Review | Hide All Updates

WordPress plugin Hide All Updates scored 90% from 54 tests.

About plugin

  • Plugin page: hide-all-updates
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2018
  • Latest release: Jan 21, 2020
  • Number of updates: 5
  • Update frequency: every 112.0 days
  • Top authors: wpza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.42ms] Passed 4 tests

Analyzing server-side resources used by Hide All Updates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.51 ▼8.16
Dashboard /wp-admin3.31 ▲0.0143.35 ▼8.22
Posts /wp-admin/edit.php3.34 ▼0.0141.22 ▼21.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.48 ▼11.62
Media Library /wp-admin/upload.php3.23 ▲0.0134.99 ▼0.24

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Hide All Updates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲6213.59 ▼1.031.75 ▼0.6736.63 ▼8.16
Dashboard /wp-admin2,195 ▲65.85 ▲0.9694.22 ▼26.1437.70 ▼9.88
Posts /wp-admin/edit.php2,078 ▼141.97 ▼0.0734.74 ▼0.6532.33 ▼11.96
Add New Post /wp-admin/post-new.php1,507 ▼2617.66 ▼5.76670.02 ▲8.3457.40 ▲3.62
Media Library /wp-admin/upload.php1,371 ▼174.32 ▲0.1598.04 ▼15.4143.38 ▼5.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: disable updates, remove updates, hide updates

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

The main file in "Hide All 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: Please rename the main PHP file in this plugin to the plugin slug ("hide-all-updates.php" instead of "wpza_hau.php")

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
No dangerous file extensions were detected39 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP352139

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods00.00%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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