84% mhm-list-postthumbnail

Code Review | Add post thumbnail to wp-admin list view

WordPress plugin Add post thumbnail to wp-admin list view scored 84% from 54 tests.

About plugin

  • Plugin page: mhm-list-postthum...
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2016
  • Latest release: Nov 11, 2022
  • Number of updates: 30
  • Update frequency: every 80.5 days
  • Top authors: markhowellsmead (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active / 5,172 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Add post thumbnail to wp-admin list view
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0245.04 ▲3.82
Dashboard /wp-admin3.33 ▲0.0246.10 ▼2.21
Posts /wp-admin/edit.php3.38 ▲0.0245.78 ▼3.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.43 ▲4.88
Media Library /wp-admin/upload.php3.25 ▲0.0235.91 ▲0.59

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Add post thumbnail to wp-admin list view
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.261.68 ▼0.6742.52 ▼1.46
Dashboard /wp-admin2,206 ▲214.85 ▼0.06110.04 ▼5.7543.65 ▼6.38
Posts /wp-admin/edit.php2,102 ▲132.02 ▲0.0139.86 ▼0.3036.60 ▼1.17
Add New Post /wp-admin/post-new.php1,533 ▲1923.37 ▲5.70594.25 ▼143.5458.51 ▲5.02
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.2095.54 ▼13.3740.50 ▼2.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mhm-list-postthumbnail/index.php:25

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: thumbnail, post thumbnail, wp-admin, list, backend...

mhm-list-postthumbnail/index.php 85% from 13 tests

Analyzing the main PHP file in "Add post thumbnail to wp-admin list view" version 1.3.0
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("mhm-list-postthumbnail.php" instead of "index.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
Good job! No executable or dangerous file extensions detected91 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171691

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods666.67%
▷ Protected methods00.00%
▷ Private methods333.33%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin