78% shk-hide-title

Code Review | SHK Hide Title

WordPress plugin SHK Hide Title scored78%from 54 tests.

About plugin

  • Plugin page: shk-hide-title
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.1.1
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: Mar 23, 2023
  • Number of updates: 10
  • Update frequency: every 287.4 days
  • Top authors: optimistic_shekhar (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

5,000+ active /47,245 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼17.29ms] Passed 4 tests

Analyzing server-side resources used by SHK Hide Title
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.91 ▼2.10
Dashboard /wp-admin3.32 ▲0.0244.18 ▼5.40
Posts /wp-admin/edit.php3.38 ▲0.0243.31 ▼7.68
Add New Post /wp-admin/post-new.php3.11 ▼2.7734.07 ▼53.99
Media Library /wp-admin/upload.php3.25 ▲0.0232.71 ▲1.51

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

SHK Hide Title: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.59 ▼0.791.93 ▲0.0646.04 ▲1.29
Dashboard /wp-admin2,200 ▲125.81 ▼0.1697.77 ▼15.6939.65 ▼2.57
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0435.82 ▼1.0431.14 ▼2.22
Add New Post /wp-admin/post-new.php6,278 ▲4,76419.07 ▲1.51911.48 ▲248.3664.61 ▲11.01
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0994.24 ▼9.1541.08 ▼3.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shk-hide-title/index.php
  • 2× 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/shk-hide-title/hide_title.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shk-hide-title/theme_customization.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: wordpress, hide title

shk-hide-title/index.php 92% from 13 tests

The main PHP script in "SHK Hide Title" version 1.0.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("shk-hide-title.php" instead of "index.php")

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 detected124 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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 files were detected