89% zi-hide-featured-image

Code Review | ZI Hide Featured Image

WordPress plugin ZI Hide Featured Image scored89%from 54 tests.

About plugin

  • Plugin page: zi-hide-featured-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2020
  • Latest release: Jan 4, 2023
  • Number of updates: 13
  • Update frequency: every 58.1 days
  • Top authors: zeninvader (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /6,536 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by ZI Hide Featured Image
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.56 ▼1.70
Dashboard /wp-admin3.32 ▼0.0247.19 ▼12.56
Posts /wp-admin/edit.php3.38 ▲0.0244.25 ▼2.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.07 ▼10.73
Media Library /wp-admin/upload.php3.25 ▲0.0236.37 ▲1.43

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ZI Hide Featured Image
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼0.941.99 ▲0.0143.29 ▼4.42
Dashboard /wp-admin2,206 ▲154.84 ▼0.25115.00 ▲11.2745.68 ▲4.05
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0034.74 ▼1.8635.54 ▲1.65
Add New Post /wp-admin/post-new.php1,516 ▼617.44 ▼5.72684.62 ▲47.5662.80 ▲7.61
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.01106.56 ▲7.8547.13 ▲3.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === zi-hide-featured-image === )
Please take inspiration from this readme.txt

zi-hide-featured-image/zi-hide-featured-image.php 92% from 13 tests

The principal PHP file in "ZI Hide Featured Image" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected11,024 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JSON30010,791
JavaScript14225153
PHP1183380

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin