84% hide-update-popup

Code Review | Hide update popup

WordPress plugin Hide update popup scored84%from 54 tests.

About plugin

  • Plugin page: hide-update-popup
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8+
  • WordPress version: 6.3.1
  • First release: Oct 29, 2016
  • Latest release: Feb 4, 2017
  • Number of updates: 5
  • Update frequency: every 19.0 days
  • Top authors: keksus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /481 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Hide update popup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.68 ▲2.31
Dashboard /wp-admin3.31 ▼0.0445.63 ▼16.61
Posts /wp-admin/edit.php3.36 ▲0.0048.49 ▼0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.92 ▼25.24
Media Library /wp-admin/upload.php3.24 ▲0.0034.22 ▲0.22

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Hide update popup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.38 ▼0.191.95 ▲0.4743.72 ▲6.81
Dashboard /wp-admin2,200 ▲235.62 ▼0.0490.17 ▲2.6240.09 ▲0.53
Posts /wp-admin/edit.php2,102 ▲22.03 ▲0.0339.68 ▲3.2737.21 ▲5.54
Add New Post /wp-admin/post-new.php1,530 ▲423.06 ▼0.70664.58 ▼19.2956.87 ▲2.71
Media Library /wp-admin/upload.php1,396 ▼44.24 ▲0.0195.95 ▼12.9543.19 ▼3.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
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-update-popup/hide-update-popup.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tested up to: Invalid version format
The official readme.txt is a good inspiration

hide-update-popup/hide-update-popup.php Passed 13 tests

"Hide update popup" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
This plugin hide update popup text into administration part of WordPress

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
Good job! No executable or dangerous file extensions detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11109

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected