83% display-image-in-admin-column

Code Review | Display Image in Admin Column

WordPress plugin Display Image in Admin Column scored 83% from 54 tests.

About plugin

  • Plugin page: display-image-in-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 3, 2017
  • Latest release: Jan 3, 2017
  • Number of updates: 9
  • Update frequency: every 2.1 days
  • Top authors: infodesignbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Display Image in Admin Column
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.38 ▼0.84
Dashboard /wp-admin3.32 ▲0.0147.20 ▼3.73
Posts /wp-admin/edit.php3.37 ▲0.0143.77 ▼30.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.44 ▼12.31
Media Library /wp-admin/upload.php3.24 ▲0.0132.04 ▼2.88

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Display Image in Admin Column
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4614.79 ▲0.491.73 ▼0.3543.92 ▼1.22
Dashboard /wp-admin2,209 ▲185.81 ▼0.25105.82 ▲1.9138.67 ▼5.16
Posts /wp-admin/edit.php2,098 ▲32.13 ▲0.1433.76 ▼8.2130.84 ▼8.46
Add New Post /wp-admin/post-new.php1,540 ▲1218.56 ▼4.72608.92 ▼82.5256.95 ▼3.48
Media Library /wp-admin/upload.php1,394 ▲64.21 ▲0.0193.38 ▼6.1540.74 ▼3.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-image-in-admin-column/display-image-in-admin-column.php:21

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 90% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Display Image in Admin Column), #2 (Dashboard Appearnce after activating the plugin)
You can look at the official readme.txt

display-image-in-admin-column/display-image-in-admin-column.php Passed 13 tests

The main PHP file in "Display Image in Admin Column" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
This plugin will add the featured image to your admin panel for all pages and posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131932

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin