84% admin-featured-image

Code Review | Easy Featured Images

WordPress plugin Easy Featured Images scored84%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: 6.3.1
  • 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

200+ active /3,414 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.85ms] Passed 4 tests

This is a short check of server-side resources used by Easy Featured Images
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.83 ▼4.02
Dashboard /wp-admin3.33 ▲0.0252.39 ▲2.35
Posts /wp-admin/edit.php3.45 ▲0.0950.20 ▼1.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.56 ▼2.73
Media Library /wp-admin/upload.php3.23 ▲0.0038.94 ▲1.02

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Featured Images
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲16714.35 ▲0.101.79 ▲0.0743.95 ▲3.08
Dashboard /wp-admin2,337 ▲1636.10 ▲0.46118.21 ▲26.5841.81 ▼0.10
Posts /wp-admin/edit.php2,280 ▲1833.38 ▲1.3648.99 ▲8.5731.79 ▼6.74
Add New Post /wp-admin/post-new.php1,528 ▲223.33 ▼0.08643.53 ▼57.2736.17 ▼28.53
Media Library /wp-admin/upload.php1,402 ▲84.11 ▼0.0392.72 ▼1.0547.07 ▲3.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: thumbnail, featured image, admin, thumbnails, image...

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

The main PHP file in "Easy Featured Images" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to 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
There were no executable 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
This plugin has no cyclomatic complexity problems
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin