94% admin-featured-thumbnail

Code Review | Admin Featured Thumbnail

WordPress plugin Admin Featured Thumbnail scored 94% from 54 tests.

About plugin

  • Plugin page: admin-featured-th...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 5.8.1
  • First release: Aug 14, 2014
  • Latest release: Apr 24, 2015
  • Number of updates: 6
  • Update frequency: every 42.2 days
  • Top authors: wphigh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,131 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Admin Featured Thumbnail
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0231.98 ▲2.40
Dashboard /wp-admin3.08 ▲0.0144.21 ▼0.47
Posts /wp-admin/edit.php3.18 ▲0.0736.50 ▲0.27
Add New Post /wp-admin/post-new.php5.44 ▲0.0075.24 ▼577.71
Media Library /wp-admin/upload.php3.02 ▲0.0226.25 ▼0.21

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Featured Thumbnail
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,716 ▲11515.67 ▲0.046.73 ▲0.5473.76 ▲0.48
Dashboard /wp-admin2,930 ▲345.98 ▼0.27115.10 ▼17.27167.27 ▼11.80
Posts /wp-admin/edit.php2,769 ▲263.25 ▲0.0163.93 ▼2.08138.03 ▼2.86
Add New Post /wp-admin/post-new.php3,706 ▼10118.76 ▲0.86422.48 ▼8.23157.93 ▲1.66
Media Library /wp-admin/upload.php1,749 ▼05.53 ▲0.00138.22 ▼7.99182.28 ▼0.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/admin-featured-thumbnail/admin-featured-thumbnail.php:219

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


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: post thumbnail, thumbnail, featured thumbnail, featured image, admin featured thumbnail...

admin-featured-thumbnail/admin-featured-thumbnail.php 92% from 13 tests

The entry point to "Admin Featured Thumbnail" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin86 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods18.33%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected