89% external-url-featured-image

Code Review | External URL Featured Image

WordPress plugin External URL Featured Image scored89%from 54 tests.

About plugin

  • Plugin page: external-url-feat...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 8, 2017
  • Latest release: Sep 27, 2020
  • Number of updates: 10
  • Update frequency: every 135.5 days
  • Top authors: jmarreros (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active /11,940 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.57ms] Passed 4 tests

An overview of server-side resources used by External URL Featured Image
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0343.42 ▲2.47
Dashboard /wp-admin3.37 ▲0.0359.35 ▲6.99
Posts /wp-admin/edit.php3.48 ▲0.0947.22 ▼3.62
Add New Post /wp-admin/post-new.php5.96 ▲0.0393.11 ▼2.27
Media Library /wp-admin/upload.php3.29 ▲0.0240.81 ▲5.70

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: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for External URL Featured Image
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.39 ▲0.042.07 ▲0.3843.51 ▼2.54
Dashboard /wp-admin2,198 ▲215.63 ▲0.1283.83 ▼17.3339.48 ▼2.56
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0432.96 ▼1.5132.27 ▼2.52
Add New Post /wp-admin/post-new.php6,257 ▲4,73125.91 ▲2.36929.62 ▲236.1564.11 ▼0.96
Media Library /wp-admin/upload.php1,403 ▲94.13 ▼0.10112.15 ▲16.2647.32 ▲0.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The main file in "External URL Featured Image" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("external-url-featured-image.php" instead of "dcms-external-url-featured-image.php")

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 detected205 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP38142168
PO File191237

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin