84% featured-link-image

Code Review | Featured Link Image

WordPress plugin Featured Link Image scored84%from 54 tests.

About plugin

  • Plugin page: featured-link-image
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5
  • WordPress version: 6.3.1
  • First release: Apr 27, 2012
  • Latest release: Jan 10, 2013
  • Number of updates: 21
  • Update frequency: every 12.3 days
  • Top authors: brasofilo (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /13,872 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
Installer ran successfully

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

This is a short check of server-side resources used by Featured Link Image
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.78 ▲0.17
Dashboard /wp-admin3.35 ▲0.0154.54 ▼13.04
Posts /wp-admin/edit.php3.47 ▲0.1147.88 ▼2.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.93 ▼14.13
Media Library /wp-admin/upload.php3.28 ▲0.0536.94 ▼1.33

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Featured Link Image
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.011.84 ▼0.0043.54 ▲1.18
Dashboard /wp-admin2,195 ▲185.61 ▼0.0594.24 ▼6.0442.95 ▼1.08
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0335.35 ▼5.4735.36 ▲1.63
Add New Post /wp-admin/post-new.php1,526 ▼323.01 ▼0.12648.53 ▼2.1855.58 ▼10.88
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.05104.16 ▲6.3749.56 ▲4.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/featured-link-image/featured-link-image.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: bookmarks, featured image, links, media library, image...

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

The entry point to "Featured Link Image" version 1.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin333 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP165129239
PO File2162852
JavaScript14033
CSS1209

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.00
▷ Minimum class complexity5.00
▷ Maximum class complexity19.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin