83% hide-page-and-post-title

Code Review | Hide Page And Post Title

WordPress plugin Hide Page And Post Title scored83%from 54 tests.

About plugin

  • Plugin page: hide-page-and-pos...
  • Plugin version: 1.5.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Jul 25, 2017
  • Latest release: May 10, 2023
  • Number of updates: 24
  • Update frequency: every 88.1 days
  • Top authors: arjunthakur (100%)

Code review

54 tests

User reviews

54 reviews

Install metrics

60,000+ active /563,747 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Hide Page And Post Title
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.27 ▲1.74
Dashboard /wp-admin3.33 ▼0.0143.58 ▼17.41
Posts /wp-admin/edit.php3.38 ▲0.0244.83 ▼9.02
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.15 ▼30.89
Media Library /wp-admin/upload.php3.25 ▲0.0235.20 ▲1.80

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Hide Page And Post Title: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.081.85 ▲0.1043.56 ▲1.95
Dashboard /wp-admin2,209 ▲185.89 ▲0.9694.53 ▼11.7538.16 ▼5.78
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0534.77 ▼7.9534.41 ▼6.77
Add New Post /wp-admin/post-new.php6,210 ▲4,68218.89 ▲0.51827.57 ▲228.2149.60 ▼1.49
Media Library /wp-admin/upload.php1,391 ▲94.25 ▲0.0595.52 ▼3.2743.28 ▼2.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-page-and-post-title/hide-page-and-post-title.php:23

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in hide-page-and-post-title/assets to your readme.txt
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

The primary PHP file in "Hide Page And Post Title" version 1.5.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin89 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2122189

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.90
▷ 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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected