84% hide-all-notices

Code Review | Hide All Notices

WordPress plugin Hide All Notices scored84%from 54 tests.

About plugin

  • Plugin page: hide-all-notices
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Aug 13, 2016
  • Latest release: Aug 19, 2020
  • Number of updates: 7
  • Update frequency: every 209.6 days
  • Top authors: DuncanPlatt (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

5,000+ active /23,066 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
Installer ran successfully

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

Server-side resources used by Hide All Notices
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.03 ▲0.20
Dashboard /wp-admin3.31 ▲0.0148.99 ▼4.00
Posts /wp-admin/edit.php3.36 ▲0.0045.88 ▼3.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.46 ▼5.46
Media Library /wp-admin/upload.php3.23 ▲0.0037.01 ▲0.50

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Hide All Notices
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.34 ▼0.311.62 ▼0.5441.59 ▼0.73
Dashboard /wp-admin2,197 ▲205.56 ▼0.0387.51 ▼1.6738.68 ▼5.93
Posts /wp-admin/edit.php2,102 ▲52.02 ▲0.0434.04 ▼4.5333.61 ▼4.68
Add New Post /wp-admin/post-new.php1,528 ▼023.09 ▲0.07641.26 ▼64.9061.19 ▼9.71
Media Library /wp-admin/upload.php1,405 ▲84.16 ▼0.0097.38 ▼9.2342.03 ▼5.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-all-notices/hide-all-notices.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: "none"
The official readme.txt is a good inspiration

hide-all-notices/hide-all-notices.php 92% from 13 tests

"Hide All Notices" version 0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 159 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
No dangerous file extensions were detected14 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1279
PHP1395

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were 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
There were not PNG files found in your plugin