94% hidden-widget-titles

Code Review | Hidden Widget Titles

WordPress plugin Hidden Widget Titles scored 94% from 54 tests.

About plugin

  • Plugin page: hidden-widget-titles
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 5.8.1
  • First release: Sep 11, 2014
  • Latest release: Sep 30, 2014
  • Number of updates: 7
  • Update frequency: every 3.7 days
  • Top authors: TylerShaw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 902 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼142.49ms] Passed 4 tests

A check of server-side resources used by Hidden Widget Titles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.80 ▲9.54
Dashboard /wp-admin3.06 ▲0.0151.39 ▲3.27
Posts /wp-admin/edit.php3.12 ▲0.0146.47 ▲1.35
Add New Post /wp-admin/post-new.php5.42 ▼0.0198.68 ▼571.91
Media Library /wp-admin/upload.php3.01 ▲0.0132.34 ▼2.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Hidden Widget Titles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.88 ▲0.3413.48 ▲1.3853.35 ▲2.81
Dashboard /wp-admin2,967 ▲305.90 ▼0.05145.50 ▼11.61115.34 ▼1.13
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0082.93 ▲10.8994.71 ▼2.92
Add New Post /wp-admin/post-new.php1,604 ▼6618.75 ▼0.49384.88 ▲0.11119.16 ▲2.80
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.02150.95 ▲1.29113.62 ▼6.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hidden-widget-titles/hidden-widget-titles.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: widget, organization, widget title, remove, hide...

hidden-widget-titles/hidden-widget-titles.php Passed 13 tests

The entry point to "Hidden Widget Titles" version 1.0.2 is a PHP file that has certain tags in its header comment area
79 characters long description:
Allows select widget titles to display in the admin panel but not on your site.

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
Success! There were no dangerous files found in this plugin21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin