84% hide-featured-image-on-all-single-pagepost

Code Review | Hide featured image on all single page/post

WordPress plugin Hide featured image on all single page/post scored84%from 54 tests.

About plugin

  • Plugin page: hide-featured-ima...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Jan 1, 2021
  • Latest release: Feb 4, 2022
  • Number of updates: 6
  • Update frequency: every 66.7 days
  • Top authors: TylerTork (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

10,000+ active /31,082 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Hide featured image on all single page/post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.24 ▼0.57
Dashboard /wp-admin3.31 ▼0.0443.04 ▼18.21
Posts /wp-admin/edit.php3.36 ▲0.0044.65 ▼2.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.71 ▼13.97
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▼1.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide featured image on all single page/post
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.17 ▼0.421.72 ▲0.1344.77 ▲1.25
Dashboard /wp-admin2,198 ▲215.61 ▼0.0387.23 ▼4.0738.14 ▼7.38
Posts /wp-admin/edit.php2,100 ▲31.98 ▲0.0233.28 ▼3.1035.03 ▲0.40
Add New Post /wp-admin/post-new.php1,534 ▲618.17 ▼4.89617.91 ▼80.4870.09 ▲10.44
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0796.64 ▼18.6844.09 ▼5.21

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/hide-featured-image-on-all-single-pagepost/torknado-hide-featured.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: featured images

hide-featured-image-on-all-single-pagepost/torknado-hide-featured.php 92% from 13 tests

The entry point to "Hide featured image on all single page/post" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hide-featured-image-on-all-single-pagepost.php" instead of "torknado-hide-featured.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected66 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1166361
CSS1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin