84% hide-wp-upgrade-message

Code Review | Hide WP Upgrade Message

WordPress plugin Hide WP Upgrade Message scored84%from 54 tests.

About plugin

  • Plugin page: hide-wp-upgrade-m...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 2, 2016
  • Latest release: Aug 2, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: hussainarsh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /674 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Hide WP Upgrade Message
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.43 ▲1.78
Dashboard /wp-admin3.31 ▲0.0050.04 ▼0.58
Posts /wp-admin/edit.php3.36 ▲0.0052.70 ▲0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.21 ▼15.66
Media Library /wp-admin/upload.php3.23 ▲0.0040.74 ▲2.47

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Hide WP Upgrade Message: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7113.15 ▼1.225.07 ▲3.0540.99 ▼8.51
Dashboard /wp-admin2,213 ▲105.86 ▲0.02113.25 ▲2.8244.23 ▲1.06
Posts /wp-admin/edit.php2,093 ▼72.05 ▲0.0338.95 ▲0.5234.51 ▼3.37
Add New Post /wp-admin/post-new.php1,537 ▼523.01 ▼0.04658.90 ▼40.1365.89 ▲0.60
Media Library /wp-admin/upload.php1,395 ▼54.23 ▲0.04116.31 ▲11.8548.89 ▲0.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-wp-upgrade-message/hide-wp-upgrade-message.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: remove upgrade message from dashboard, hide upgrade message from dashboard, hide upgrade link from dashboard

hide-wp-upgrade-message/hide-wp-upgrade-message.php Passed 13 tests

The main PHP script in "Hide WP Upgrade Message" version 1.0.0 is automatically included on every request by WordPress
64 characters long description:
This plugin hides the wordpress upgrade message in the dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1495

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin