10% get-post-list-with-thumbnails

Code Review | Get Post List With Thumbnails

WordPress plugin Get Post List With Thumbnails scored10%from 54 tests.

About plugin

  • Plugin page: get-post-list-wit...
  • Plugin version: 10.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.3-3.5.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2011
  • Latest release: Aug 9, 2013
  • Number of updates: 67
  • Update frequency: every 19.9 days
  • Top authors: alvaron (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /34,100 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/get-post-list-with-thumbnails/get_post_list_with_thumbs.php+944
    Methods with the same name as their class will not be constructors in a future version of PHP; GPLWT_Widget has a deprecated constructor

Server metrics [RAM: ▼1.53MB] [CPU: ▼55.47ms] Passed 4 tests

A check of server-side resources used by Get Post List With Thumbnails
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.46 ▼1.006.57 ▼31.61
Dashboard /wp-admin2.48 ▼0.837.04 ▼43.48
Posts /wp-admin/edit.php2.48 ▼0.887.79 ▼42.93
Add New Post /wp-admin/post-new.php2.48 ▼3.417.35 ▼103.84
Media Library /wp-admin/upload.php2.48 ▼0.757.14 ▼24.20

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Get Post List With Thumbnails
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8913.35 ▼1.331.92 ▲0.1046.17 ▲5.88
Dashboard /wp-admin2,223 ▲235.90 ▲0.97108.76 ▼3.0541.50 ▼3.66
Posts /wp-admin/edit.php2,105 ▲52.06 ▲0.0039.71 ▼2.6838.50 ▲2.26
Add New Post /wp-admin/post-new.php1,549 ▲2323.40 ▲5.90654.92 ▼40.1355.53 ▼9.29
Media Library /wp-admin/upload.php1,408 ▲84.25 ▲0.01105.46 ▲1.6849.17 ▲4.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/get-post-list-with-thumbnails/get_post_list_with_thumbs.php+944
    Methods with the same name as their class will not be constructors in a future version of PHP; GPLWT_Widget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_gplwt-widget
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/get-post-list-with-thumbnails/ajaxgplwt.php
  • 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/get-post-list-with-thumbnails/get_post_list_with_thumbs.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Posting it on a page as shotcode - live demo on: http://www.wpworking.com/posts-list/), #2 (Configuring widget parameters on wp-admin), #3 (Registering the widget on wp-admin widget pannel and Making the widget work on a PHP page)
You can take inspiration from this readme.txt

get-post-list-with-thumbnails/get_post_list_with_thumbs.php 85% from 13 tests

The main file in "Get Post List With Thumbnails" v. 10.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("get-post-list-with-thumbnails.php" instead of "get_post_list_with_thumbs.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,184 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2262271,140
JavaScript155244

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity23.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%
Functions12
▷ Named functions12100.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
No PNG files were detected