84% hide-core-update-notice

Code Review | Hide Core Update Notice

WordPress plugin Hide Core Update Notice scored84%from 54 tests.

About plugin

  • Plugin page: hide-core-update-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0
  • WordPress version: 6.3.1
  • First release: Jan 30, 2015
  • Latest release: Dec 10, 2018
  • Number of updates: 11
  • Update frequency: every 128.2 days
  • Top authors: revaultmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,472 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Hide Core Update Notice
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.96 ▼0.14
Dashboard /wp-admin3.31 ▼0.0447.33 ▼19.10
Posts /wp-admin/edit.php3.36 ▲0.0050.74 ▼4.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.12 ▼21.59
Media Library /wp-admin/upload.php3.23 ▲0.0038.38 ▼1.15

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
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Hide Core Update Notice
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.301.74 ▲0.0639.04 ▼4.25
Dashboard /wp-admin2,206 ▲185.79 ▼0.0298.42 ▼12.1437.30 ▼7.78
Posts /wp-admin/edit.php2,092 ▼02.02 ▼0.0333.83 ▼6.7730.89 ▼4.45
Add New Post /wp-admin/post-new.php1,533 ▲1423.36 ▼0.02706.82 ▲38.5156.08 ▼9.11
Media Library /wp-admin/upload.php1,391 ▲64.28 ▲0.0197.70 ▼3.5844.54 ▲1.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-core-update-notice/hide-core-update-notice.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (With and without notice.) image missing
The official readme.txt is a good inspiration

hide-core-update-notice/hide-core-update-notice.php Passed 13 tests

"Hide Core Update Notice" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
This plugin will remove the notice to update WordPress for users who can't update core.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1198

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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