84% featured-image-via-url

Code Review | Featured Image via URL

WordPress plugin Featured Image via URL scored84%from 54 tests.

About plugin

  • Plugin page: featured-image-vi...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.1+
  • WordPress version: 6.3.1
  • First release: Jun 24, 2013
  • Latest release: Jan 13, 2014
  • Number of updates: 11
  • Update frequency: every 18.6 days
  • Top authors: tsaiid (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /17,668 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.70MB] [CPU: ▼15.85ms] Passed 4 tests

A check of server-side resources used by Featured Image via URL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.84 ▼2.89
Dashboard /wp-admin3.31 ▲0.0051.16 ▲0.48
Posts /wp-admin/edit.php3.36 ▲0.0048.76 ▲0.37
Add New Post /wp-admin/post-new.php3.09 ▼2.7933.66 ▼56.12
Media Library /wp-admin/upload.php3.23 ▲0.0033.48 ▼4.77

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Featured Image via URL: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.101.76 ▲0.0744.59 ▲1.08
Dashboard /wp-admin2,206 ▲155.84 ▲0.97105.43 ▼0.2339.52 ▼5.00
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0335.61 ▼1.4235.94 ▲3.96
Add New Post /wp-admin/post-new.php1,533 ▼923.13 ▲0.29640.62 ▼40.5960.05 ▼3.31
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.0693.72 ▼8.9443.42 ▲0.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-image-via-url/featured-image-via-url.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tested up to: Invalid plugin version format
The official readme.txt is a good inspiration

featured-image-via-url/featured-image-via-url.php Passed 13 tests

The principal PHP file in "Featured Image via URL" v. 0.1 is loaded by WordPress automatically on each request
122 characters long description:
Allows you to set featured image via URL. The image will be fetched back and saved into the Media Library with thumbnails.

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
Everything looks great! No dangerous files found in this plugin89 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1395583
Markdown1006

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin