78% featured-image-admin-thumb-fiat

Code Review | Featured Image Admin Thumb

WordPress plugin Featured Image Admin Thumb scored78%from 54 tests.

About plugin

  • Plugin page: featured-image-ad...
  • Plugin version: 1.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.2
  • WordPress version: 6.3.1
  • First release: Dec 3, 2013
  • Latest release: May 1, 2023
  • Number of updates: 97
  • Update frequency: every 35.4 days
  • Top authors: seanchayes (100%)

Code review

54 tests

User reviews

35 reviews

Install metrics

20,000+ active /148,711 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.10MB] [CPU: ▼3.06ms] Passed 4 tests

A check of server-side resources used by Featured Image Admin Thumb
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0240.45 ▼1.80
Dashboard /wp-admin3.47 ▲0.1256.29 ▲6.14
Posts /wp-admin/edit.php3.61 ▲0.2156.10 ▲2.00
Add New Post /wp-admin/post-new.php6.05 ▲0.1288.93 ▼14.00
Media Library /wp-admin/upload.php3.39 ▲0.1237.90 ▲1.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Featured Image Admin Thumb
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.011.98 ▲0.2943.98 ▲0.33
Dashboard /wp-admin2,198 ▲185.48 ▼0.1994.34 ▲4.5347.30 ▲1.95
Posts /wp-admin/edit.php2,326 ▲2263.37 ▲1.4374.68 ▲30.0432.73 ▼5.36
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▼0.10684.71 ▼71.1558.54 ▲3.76
Media Library /wp-admin/upload.php1,403 ▲34.09 ▼0.0380.97 ▼29.0342.79 ▼1.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/featured-image-admin-thumb-fiat/public/views/public.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/featured-image-admin-thumb-fiat/admin/views/admin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: thumbnail, post-thumbnail, featured, featured admin thumbnail, image...

featured-image-admin-thumb-fiat/featured-image-admin-thumb.php 85% from 13 tests

Analyzing the main PHP file in "Featured Image Admin Thumb" version 1.6
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("featured-image-admin-thumb-fiat.php" instead of "featured-image-admin-thumb.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,198 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
SVG103487
PHP7107390338
CSS31615170
Markdown141088
JavaScript3173586
PO File15729

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity21.50
▷ Minimum class complexity11.00
▷ Maximum class complexity32.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods725.93%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 were not PNG files found in your plugin