90% hide-thumbnails

Code Review | Hide Thumbnails - Remove Thumbnail from Post

WordPress plugin Hide Thumbnails - Remove Thumbnail from Post scored90%from 54 tests.

About plugin

  • Plugin page: hide-thumbnails
  • Plugin version: 1.4.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Mar 23, 2023
  • Latest release: Nov 28, 2023
  • Number of updates: 34
  • Update frequency: every 7.4 days
  • Top authors: mehrazmorshed (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /601 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Hide Thumbnails - Remove Thumbnail from Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.48 ▼7.07
Dashboard /wp-admin3.33 ▼0.0143.99 ▼17.63
Posts /wp-admin/edit.php3.38 ▲0.0346.38 ▲2.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0379.58 ▼17.95
Media Library /wp-admin/upload.php3.25 ▲0.0234.34 ▼0.15

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Hide Thumbnails - Remove Thumbnail from Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6114.07 ▲0.031.79 ▲0.0438.07 ▼10.02
Dashboard /wp-admin2,216 ▲425.56 ▼0.0191.89 ▼7.0838.67 ▼8.86
Posts /wp-admin/edit.php2,118 ▲181.95 ▼0.0638.89 ▲1.4834.55 ▼2.93
Add New Post /wp-admin/post-new.php1,541 ▲1123.08 ▼0.21570.38 ▼84.6851.03 ▼2.26
Media Library /wp-admin/upload.php1,421 ▲274.21 ▼0.0394.43 ▲0.2642.48 ▲0.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: hide thumbnail, remove thumbnails, disable thumbnails, disable thumbnail, post thumbnail

hide-thumbnails/hide-thumbnails.php Passed 13 tests

"Hide Thumbnails - Remove Thumbnail from Post" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Disable thumbnails from posts of your website.

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
Success! There were no dangerous files found in this plugin188 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22331105
CSS11083

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions7
▷ Named functions7100.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
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/author.png110.64KB37.40KB▼ 66.20%