74% post-or-page-hide-title

Code Review | Hide Title

WordPress plugin Hide Title scored 74% from 54 tests.

About plugin

  • Plugin page: post-or-page-hide...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.5
  • WordPress version: 6.3.1
  • First release: May 27, 2017
  • Latest release: May 27, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: jitendrabanjara1991 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 27,344 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.66MB] [CPU: ▼18.90ms] Passed 4 tests

Analyzing server-side resources used by Hide Title
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0339.28 ▼2.12
Dashboard /wp-admin3.33 ▲0.0345.59 ▼7.22
Posts /wp-admin/edit.php3.38 ▲0.0249.32 ▲4.21
Add New Post /wp-admin/post-new.php3.16 ▼2.7338.18 ▼66.02
Media Library /wp-admin/upload.php3.25 ▲0.0235.86 ▼0.22

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Hide Title
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.67 ▼0.771.89 ▲0.0247.36 ▲3.20
Dashboard /wp-admin2,206 ▲214.87 ▲0.01101.23 ▼18.2437.78 ▼7.69
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0240.41 ▲4.2236.27 ▲3.03
Add New Post /wp-admin/post-new.php6,472 ▲4,93923.20 ▲0.04869.54 ▲193.9358.97 ▲6.37
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0295.04 ▼11.8441.83 ▼2.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-or-page-hide-title/post-or-pages-hide-title.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: title, frontend, adminbar

post-or-page-hide-title/post-or-pages-hide-title.php 92% from 13 tests

The main PHP file in "Hide Title" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("post-or-page-hide-title.php" instead of "post-or-pages-hide-title.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin114 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2417114

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.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