94% admin-featured-image

Code Review | Easy Featured Images

WordPress plugin Easy Featured Images scored 94% from 54 tests.

About plugin

  • Plugin page: admin-featured-image
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.2
  • WordPress version: 5.9.2
  • First release: Dec 16, 2014
  • Latest release: Oct 21, 2019
  • Number of updates: 26
  • Update frequency: every 68.1 days
  • Top authors: kosvrouvas (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 2,774 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼311.44ms] Passed 4 tests

A check of server-side resources used by Easy Featured Images
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.39 ▲5.22
Dashboard /wp-admin3.44 ▲0.0336.80 ▲2.69
Posts /wp-admin/edit.php3.68 ▲0.0443.33 ▲0.99
Add New Post /wp-admin/post-new.php6.90 ▼0.0794.13 ▼1,251.52
Media Library /wp-admin/upload.php3.30 ▲0.0124.88 ▲2.07

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Easy Featured Images: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,958 ▲21417.59 ▲1.815.72 ▼1.142.19 ▲0.03
Dashboard /wp-admin3,083 ▲2228.02 ▲1.91141.61 ▲6.86208.26 ▲45.62
Posts /wp-admin/edit.php2,937 ▲2465.08 ▲1.8582.59 ▲17.15181.95 ▲34.92
Add New Post /wp-admin/post-new.php1,663 ▲216.24 ▼1.63411.79 ▼14.13164.11 ▼57.31
Media Library /wp-admin/upload.php1,703 ▲85.44 ▼0.08106.67 ▼40.41184.97 ▼19.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/admin-featured-image/adminthumb.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: admin, thumbnail, image, featured, featured image...

admin-featured-image/adminthumb.php 92% from 13 tests

This is the main PHP file of "Easy Featured Images" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("admin-featured-image.php" instead of "adminthumb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin104 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1241186
CSS13018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin