83% show-thumbnail-image-in-admin-post-page-list-stiap

Code Review | Show Thumbnail Image In Admin Post / Page List

WordPress plugin Show Thumbnail Image In Admin Post / Page List scored83%from 54 tests.

About plugin

  • Plugin page: show-thumbnail-im...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Mar 3, 2022
  • Latest release: Mar 3, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: bjovaar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Show Thumbnail Image In Admin Post / Page List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.96 ▲1.50
Dashboard /wp-admin3.33 ▲0.0249.61 ▼6.37
Posts /wp-admin/edit.php3.38 ▲0.0247.03 ▲0.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.68 ▼15.00
Media Library /wp-admin/upload.php3.25 ▲0.0237.92 ▲3.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Show Thumbnail Image In Admin Post / Page List
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6714.74 ▲0.451.71 ▼0.2144.13 ▼5.64
Dashboard /wp-admin2,208 ▲204.85 ▼1.00110.77 ▼5.4941.76 ▼3.93
Posts /wp-admin/edit.php2,100 ▲112.00 ▼0.0134.98 ▼2.9736.01 ▼3.06
Add New Post /wp-admin/post-new.php1,516 ▼3117.45 ▼0.94675.11 ▲23.1953.69 ▼7.83
Media Library /wp-admin/upload.php1,390 ▲54.16 ▼0.0593.49 ▼1.2145.29 ▲1.32

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-thumbnail-image-in-admin-post-page-list-stiap/stiap-plugin.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

show-thumbnail-image-in-admin-post-page-list-stiap/stiap-plugin.php 85% from 13 tests

The main PHP file in "Show Thumbnail Image In Admin Post / Page List" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("show-thumbnail-image-in-admin-post-page-list-stiap.php" instead of "stiap-plugin.php")
  • 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,450 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
HTML143535,326
PO File2121274
PHP2294050

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.36MB with 0.23MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/banner-1544x500.png243.97KB74.69KB▼ 69.39%
assets/images/icon-128x128.png15.25KB6.47KB▼ 57.56%
assets/images/banner-772x250.png81.80KB23.08KB▼ 71.79%
assets/images/icon-256x256.png32.32KB14.50KB▼ 55.13%