84% wp-recent-posts-extended

Code Review | WP Recent Posts Extended

WordPress plugin WP Recent Posts Extended scored 84% from 54 tests.

About plugin

  • Plugin page: wp-recent-posts-e...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.8
  • WordPress version: 6.3.1
  • First release: Dec 18, 2013
  • Latest release: Sep 27, 2017
  • Number of updates: 6
  • Update frequency: every 229.8 days
  • Top authors: vicengd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 6,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.48ms] Passed 4 tests

Server-side resources used by WP Recent Posts Extended
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.76 ▼7.23
Dashboard /wp-admin3.33 ▲0.0344.32 ▼1.71
Posts /wp-admin/edit.php3.39 ▲0.0339.90 ▼7.22
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.90 ▼17.76
Media Library /wp-admin/upload.php3.26 ▲0.0333.73 ▼0.29

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_wprpe
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Recent Posts Extended
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.22 ▼1.211.71 ▼0.1942.35 ▼1.41
Dashboard /wp-admin2,205 ▲165.77 ▲0.7393.37 ▼24.8539.89 ▼0.63
Posts /wp-admin/edit.php2,091 ▼12.00 ▼0.0335.55 ▼0.9431.57 ▼1.12
Add New Post /wp-admin/post-new.php1,535 ▲123.16 ▲0.20700.83 ▲36.8452.95 ▼7.40
Media Library /wp-admin/upload.php1,390 ▲24.20 ▼0.0195.02 ▼1.0242.71 ▲1.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_wprpe

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-recent-posts-extended/inc/wprpe.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: posts by category, recent posts, last posts

wp-recent-posts-extended/wp-recent-posts-extended.php 92% from 13 tests

The main PHP script in "WP Recent Posts Extended" version 1.1.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin160 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43375139
CSS12021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected