78% featured-image-from-url

Code Review | Featured Image from URL (FIFU)

WordPress plugin Featured Image from URL (FIFU) scored78%from 54 tests.

About plugin

  • Plugin page: featured-image-fr...
  • Plugin version: 4.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2015
  • Latest release: Nov 29, 2023
  • Number of updates: 761
  • Update frequency: every 3.9 days
  • Top authors: marceljm (100%)

Code review

54 tests

User reviews

224 reviews

Install metrics

100,000+ active /4,525,364 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
Install script ran successfully

Server metrics [RAM: ▲2.04MB] [CPU: ▲5.90ms] Passed 4 tests

This is a short check of server-side resources used by Featured Image from URL (FIFU)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.53 ▲2.0644.73 ▲5.59
Dashboard /wp-admin5.37 ▲2.0260.13 ▼3.98
Posts /wp-admin/edit.php5.42 ▲2.0763.14 ▲14.87
Add New Post /wp-admin/post-new.php7.95 ▲2.07104.43 ▲10.47
Media Library /wp-admin/upload.php5.25 ▲2.0245.13 ▲11.53
Cloud /wp-admin/admin.php?page=fifu-cloud5.6655.75
Settings /wp-admin/admin.php?page=featured-image-from-url7.1562.46
Status /wp-admin/admin.php?page=fifu-support-data5.4652.69
Troubleshooting /wp-admin/admin.php?page=fifu-troubleshooting5.5849.69

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: no new tables, 38 new options
New WordPress options
widget_fifu_widget_grid
fifu_pop_first
theysaidso_admin_options
fifu_get_first
fifu_cloud_upload_auto
fifu_cdn_social
can_compress_scripts
fifu_dynamic_alt
widget_fifu_widget_image
fifu_wc_zoom
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Featured Image from URL (FIFU)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9814.38 ▼0.252.58 ▲0.9237.83 ▼6.32
Dashboard /wp-admin2,250 ▲705.84 ▲0.1798.28 ▼2.3542.57 ▼13.38
Posts /wp-admin/edit.php2,189 ▲892.52 ▲0.5242.00 ▲7.3735.11 ▼1.36
Add New Post /wp-admin/post-new.php6,445 ▲4,91618.76 ▼4.41868.52 ▲259.3037.17 ▼22.09
Media Library /wp-admin/upload.php1,458 ▲584.44 ▲0.2598.23 ▲0.9143.68 ▲0.61
Cloud /wp-admin/admin.php?page=fifu-cloud2,4097.55159.26117.10
Settings /wp-admin/admin.php?page=featured-image-from-url8,7456.80193.86190.61
Status /wp-admin/admin.php?page=fifu-support-data9755.9297.5427.09
Upgrade to PRO /wp-admin/admin.php?page=#280.410.083.72
Troubleshooting /wp-admin/admin.php?page=fifu-troubleshooting3,7705.9859.7659.61

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: 38 options
    • widget_fifu_widget_image
    • fifu_wc_lbox
    • fifu_hide_cpt
    • fifu_cdn_social
    • fifu_hide_format
    • fifu_wc_zoom
    • widget_fifu_widget_grid
    • fifu_photon
    • fifu_check
    • fifu_content_cpt
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following
  • 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-image-from-url/gravity-forms/fifufieldaddon.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-image-from-url/admin/column.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/featured-image-from-url/admin/cron.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/featured-image-from-url/includes/attachment.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/featured-image-from-url/includes/external-post.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-image-from-url/admin/category.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/featured-image-from-url/admin/widgets.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/featured-image-from-url/elementor/widgets/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-image-from-url/admin/menu.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/featured-image-from-url/includes/thumbnail.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fifu-support-data
    • > Network (severe)
    wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fifu-support-data
    • > Network (severe)
    wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    • > GET request to /wp-admin/admin.php?page=#
    • > Network (severe)
    wp-admin/admin.php?page=# - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === featured-image-from-url === )
The official readme.txt is a good inspiration

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

The main file in "Featured Image from URL (FIFU)" v. 4.5.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected20,714 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
HTML132771498,431
PHP281,4165048,417
JavaScript13280762,162
CSS1193541,523
JSON700152
XML10029

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity23.09
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods140
▷ Static methods32.14%
▷ Public methods13697.14%
▷ Protected methods42.86%
▷ Private methods00.00%
Functions1,159
▷ Named functions30926.66%
▷ Anonymous functions85073.34%
Constants24
▷ Global constants24100.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
No PNG images were found in this plugin