84% admin-featured-thumbnail

Code Review | Admin Featured Thumbnail

WordPress plugin Admin Featured Thumbnail scored84%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: 6.3.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,362 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.84ms] Passed 4 tests

A check of server-side resources used by Admin Featured Thumbnail
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.40 ▼5.27
Dashboard /wp-admin3.32 ▲0.0250.88 ▼0.49
Posts /wp-admin/edit.php3.39 ▲0.0350.32 ▼2.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.96 ▼13.95
Media Library /wp-admin/upload.php3.25 ▲0.0232.19 ▼5.49

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

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

Browser metrics Passed 4 tests

Admin Featured Thumbnail: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.341.88 ▼0.0643.79 ▼0.10
Dashboard /wp-admin2,198 ▲215.62 ▼0.0491.26 ▼10.2442.18 ▼0.17
Posts /wp-admin/edit.php2,123 ▲232.08 ▲0.0638.09 ▼2.5233.69 ▼3.54
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▲0.10692.16 ▲10.4152.09 ▼2.60
Media Library /wp-admin/upload.php1,400 ▼04.38 ▲0.1799.10 ▼10.4343.88 ▼1.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 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 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: post thumbnail, admin featured thumbnail, thumbnail, featured image, admin featured image...

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

The primary PHP file in "Admin Featured Thumbnail" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected86 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12511284
CSS1001
JavaScript1031

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin