90% custom-url-to-featured-image

Code Review | Add Featured Image Custom Link

WordPress plugin Add Featured Image Custom Link scored90%from 54 tests.

About plugin

  • Plugin page: custom-url-to-fea...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Jan 11, 2019
  • Latest release: Apr 5, 2023
  • Number of updates: 44
  • Update frequency: every 35.1 days
  • Top authors: mitalideva (70.45%)viitorcloudvc (31.82%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active /15,324 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Add Featured Image Custom Link
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.50 ▲0.78
Dashboard /wp-admin3.32 ▼0.0246.92 ▼11.42
Posts /wp-admin/edit.php3.37 ▲0.0245.61 ▼2.01
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.68 ▼17.72
Media Library /wp-admin/upload.php3.24 ▲0.0235.62 ▼1.03

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

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

Browser metrics Passed 4 tests

Add Featured Image Custom Link: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.332.01 ▲0.3644.52 ▲4.92
Dashboard /wp-admin2,203 ▲125.85 ▼0.0096.72 ▼6.6738.09 ▼7.18
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0436.20 ▼1.5535.39 ▼1.82
Add New Post /wp-admin/post-new.php6,239 ▲4,71121.80 ▼1.17875.63 ▲228.0356.40 ▲2.07
Media Library /wp-admin/upload.php1,388 ▲64.22 ▲0.02104.07 ▼7.2543.34 ▼1.03

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

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

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)
Even though everything seems fine, this is not an exhaustive test

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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: featured image custom link, gutenberg editor support, custom link to page image, external link to featured image, custom url to featured image...

custom-url-to-featured-image/custom-url-to-featured-image.php 92% from 13 tests

The entry point to "Add Featured Image Custom Link" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin92 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34111092

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
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%
Constants7
▷ Global constants7100.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
No PNG files were detected