83% thumbnail-recent-post

Code Review | Thumbnail RecentPost

WordPress plugin Thumbnail RecentPost scored 83% from 54 tests.

About plugin

  • Plugin page: thumbnail-recent-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-1.0
  • WordPress version: 6.3.1
  • First release: Oct 31, 2014
  • Latest release: Oct 31, 2014
  • Number of updates: 31
  • Update frequency: every 0.8 days
  • Top authors: gapgag55 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Thumbnail RecentPost
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.24 ▼8.43
Dashboard /wp-admin3.33 ▲0.0247.30 ▼3.75
Posts /wp-admin/edit.php3.38 ▲0.0246.02 ▼4.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.06 ▼22.83
Media Library /wp-admin/upload.php3.25 ▲0.0241.49 ▲5.38

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_thumbnail_recent
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Thumbnail RecentPost
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.39 ▼0.921.69 ▼0.0342.45 ▼3.90
Dashboard /wp-admin2,203 ▲184.88 ▼0.01102.38 ▼7.3938.64 ▼7.54
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0134.61 ▼12.8833.48 ▼2.64
Add New Post /wp-admin/post-new.php1,514 ▼2023.53 ▲0.61600.41 ▼32.3470.75 ▲10.82
Media Library /wp-admin/upload.php1,391 ▼04.25 ▼0.0199.27 ▼7.1143.89 ▼3.58

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_thumbnail_recent
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thumbnail-recent-post/recentpost-thumbnail.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Please add descriptions for these screenshots #0, #0 in thumbnail-recent-post/assets to your readme.txt
Please take inspiration from this readme.txt

thumbnail-recent-post/recentpost-thumbnail.php 85% from 13 tests

This is the main PHP file of "Thumbnail RecentPost" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("thumbnail-recent-post.php" instead of "recentpost-thumbnail.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin83 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1351574
CSS1009

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
3 PNG files occupy 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screen.png78.99KB24.74KB▼ 68.67%
screenshot.png55.13KB14.62KB▼ 73.47%
assets/banner-772x250.png64.75KB19.81KB▼ 69.40%