10% recent-post-list

Code Review | Recent post list

WordPress plugin Recent post list scored 10% from 54 tests.

About plugin

  • Plugin page: recent-post-list
  • Plugin version: 0.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.1
  • WordPress version: 5.9.2
  • First release: Sep 28, 2014
  • Latest release: Dec 23, 2014
  • Number of updates: 26
  • Update frequency: every 3.3 days
  • Top authors: Aivaras1991 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 24,496 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/recent-post-list/recent_post_list.php+236
    syntax error, unexpected end of file

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

A check of server-side resources used by Recent post list
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.4056.09 ▲38.75
Dashboard /wp-admin3.41 ▲0.0034.27 ▲0.06
Posts /wp-admin/edit.php3.64 ▲0.0071.56 ▲2.16
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.92 ▼1,173.85
Media Library /wp-admin/upload.php3.29 ▲0.0025.64 ▼3.37

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Recent post list: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2615.37 ▼0.657.11 ▲1.222.05 ▼0.08
Dashboard /wp-admin2,881 ▲276.11 ▼0.08117.84 ▼18.80158.78 ▼6.51
Posts /wp-admin/edit.php2,685 ▼93.23 ▲0.0163.93 ▼5.54144.94 ▼0.30
Add New Post /wp-admin/post-new.php1,661 ▼9115.34 ▼5.56448.80 ▼26.42172.79 ▲15.07
Media Library /wp-admin/upload.php1,695 ▼35.57 ▲0.05153.74 ▲1.97201.26 ▲11.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/recent-post-list/recent_post_list.php on line 236

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Contributors: Contributors not specified
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt might help

recent-post-list/recent_post_list.php 77% from 13 tests

The main PHP script in "Recent post list" version 0.9.8 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("recent-post-list.php" instead of "recent_post_list.php")
  • Version: Plugin version missing
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,404 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS237501,186
PHP1117218

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.27KB0.14KB▼ 47.84%
css/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%