73% unclickable-featured-image

Code Review | Unclickable Featured Image

WordPress plugin Unclickable Featured Image scored73%from 54 tests.

About plugin

  • Plugin page: unclickable-featu...
  • Plugin version: 2.1
  • PHP compatiblity: 5.2.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 30, 2019
  • Latest release: Jul 1, 2019
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: zggz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.42ms] Passed 4 tests

This is a short check of server-side resources used by Unclickable Featured Image
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0346.45 ▲5.63
Dashboard /wp-admin3.35 ▲0.0445.35 ▼0.54
Posts /wp-admin/edit.php3.40 ▲0.0448.18 ▲5.42
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.07 ▼12.55
Media Library /wp-admin/upload.php3.27 ▲0.0436.18 ▲2.00
Unclickable Featured Image Settings /wp-admin/options-general.php?page=unclickable3.2128.32

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 14 new options
New WordPress options
widget_recent-posts
unclickable_options_img
unclickable_options_thumbnail
widget_theysaidso_widget
unclickable_options_selector
unclickable_options_all
unclickable_options_select
unclickable_options_link
can_compress_scripts
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for Unclickable Featured Image
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.341.70 ▲0.0344.36 ▲6.06
Dashboard /wp-admin2,199 ▲215.54 ▼0.1283.89 ▼27.7236.42 ▼5.04
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0338.99 ▲3.2134.34 ▲0.75
Add New Post /wp-admin/post-new.php1,529 ▲123.35 ▲0.10630.01 ▼44.4458.23 ▲5.56
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0393.75 ▼6.5240.99 ▼4.68
Unclickable Featured Image Settings /wp-admin/options-general.php?page=unclickable9771.9925.4331.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 14 options
    • unclickable_options_selector
    • unclickable_options_link
    • widget_theysaidso_widget
    • unclickable_options_hook
    • unclickable_options_thumbnail
    • widget_recent-posts
    • unclickable_options_select
    • db_upgraded
    • can_compress_scripts
    • unclickable_options_img
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 24 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=unclickable
    • > Warning in wp-content/plugins/unclickable-featured-image/unclickable-featured-image.php+213
    Use of undefined constant option - assumed 'option' (this will throw an Error in a future version of PHP)
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=unclickable
    • > Warning in wp-content/plugins/unclickable-featured-image/unclickable-featured-image.php+210
    Use of undefined constant label - assumed 'label' (this will throw an Error in a future version of PHP)
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=unclickable
    • > Warning in wp-content/plugins/unclickable-featured-image/unclickable-featured-image.php+213
    Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=unclickable
    • > Warning in wp-content/plugins/unclickable-featured-image/unclickable-featured-image.php+213
    Use of undefined constant value - assumed 'value' (this will throw an Error in a future version of PHP)
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=unclickable
    • > Warning in wp-content/plugins/unclickable-featured-image/unclickable-featured-image.php+216
    Use of undefined constant second - assumed 'second' (this will throw an Error in a future version of PHP)

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/unclickable-featured-image/unclickable-featured-image.php:30

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=unclickable
    • > Network (severe)
    wp-content/plugins/unclickable-featured-image/unclickable-admin.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (The settings page)
You can take inspiration from this readme.txt

unclickable-featured-image/unclickable-featured-image.php Passed 13 tests

This is the main PHP file of "Unclickable Featured Image" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
A wordpress plugin that forces all featured images to NOT be links

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 plugin186 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11941186

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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%
Functions6
▷ Named functions6100.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
No PNG files were detected