84% recent-posts-widget-with-thumbnails

Code Review | Recent Posts Widget With Thumbnails

WordPress plugin Recent Posts Widget With Thumbnails scored 84% from 54 tests.

About plugin

  • Plugin page: recent-posts-widg...
  • Plugin version: 7.1.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Aug 10, 2023
  • Number of updates: 158
  • Update frequency: every 21.2 days
  • Top authors: Hinjiriyo (92.41%)kybernetikservices (8.23%)

Code review

54 tests

User reviews

204 reviews

Install metrics

200,000+ active / 3,384,540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Recent Posts Widget With Thumbnails
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.17 ▲1.50
Dashboard /wp-admin3.32 ▲0.0246.74 ▲0.68
Posts /wp-admin/edit.php3.44 ▲0.0847.31 ▲1.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.90 ▼12.28
Media Library /wp-admin/upload.php3.25 ▲0.0234.64 ▲1.09

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts-widget-with-thumbnails
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Recent Posts Widget With Thumbnails
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.32 ▼1.261.80 ▼0.1538.26 ▼4.58
Dashboard /wp-admin2,209 ▲185.86 ▲0.9795.44 ▼10.7740.35 ▼4.99
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0438.90 ▼4.9536.92 ▲1.83
Add New Post /wp-admin/post-new.php1,514 ▼2817.71 ▼0.60645.53 ▲24.6766.30 ▲15.58
Media Library /wp-admin/upload.php1,391 ▲124.21 ▲0.0193.99 ▼8.7245.38 ▲0.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/recent-posts-widget-with-thumbnails/includes/form.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/recent-posts-widget-with-thumbnails/includes/widget.php:5
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/recent-posts-widget-with-thumbnails/includes/widget.php on line 1
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/recent-posts-widget-with-thumbnails/includes/widget.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recent-posts-widget-with-thumbnails/recent-posts-widget-with-thumbnails.php:21
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/recent-posts-widget-with-thumbnails/includes/widget.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/recent-posts-widget-with-thumbnails/includes/widget.php on line 2
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/recent-posts-widget-with-thumbnails/includes/widget.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
5 plugin tags: posts list, recent posts, thumbnails, images, widget

recent-posts-widget-with-thumbnails/recent-posts-widget-with-thumbnails.php 92% from 13 tests

The entry point to "Recent Posts Widget With Thumbnails" version 7.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("2.9" instead of "4.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin968 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5178334956
CSS20112

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity164.00
▷ Minimum class complexity164.00
▷ Maximum class complexity164.00
Average method complexity10.06
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods844.44%
▷ Protected methods00.00%
▷ Private methods1055.56%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin