10% enhanced-recent-posts

Code Review | Enhanced Recent Posts

WordPress plugin Enhanced Recent Posts scored10%from 54 tests.

About plugin

  • Plugin page: enhanced-recent-p...
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.5
  • WordPress version: 6.3.1
  • First release: Jun 20, 2008
  • Latest release: Apr 12, 2014
  • Number of updates: 24
  • Update frequency: every 88.4 days
  • Top authors: vprat (87.5%)marvinlabs (16.67%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /29,707 total downloads

Benchmarks

Plugin footprint 58% 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
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.29ms] Passed 4 tests

Analyzing server-side resources used by Enhanced Recent Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.11 ▼2.18
Dashboard /wp-admin3.32 ▲0.0150.40 ▲3.45
Posts /wp-admin/edit.php3.37 ▲0.0148.26 ▼5.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.03 ▼29.85
Media Library /wp-admin/upload.php3.24 ▲0.0133.68 ▼7.83

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
enh_rp_widget_options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
enh_rp_plugin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Enhanced Recent Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.462.16 ▼0.1744.00 ▼11.06
Dashboard /wp-admin2,192 ▲155.51 ▼0.0198.98 ▲6.5042.37 ▲1.12
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0035.11 ▼5.7234.24 ▼6.50
Add New Post /wp-admin/post-new.php1,526 ▼823.47 ▲4.89653.57 ▼1.1159.98 ▼4.13
Media Library /wp-admin/upload.php1,394 ▼34.20 ▲0.0198.62 ▼27.6443.64 ▼5.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • enh_rp_plugin_options
    • widget_recent-posts
    • enh_rp_widget_options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/enhanced-recent-posts/includes/widget-class.php
    • > /wp-content/plugins/enhanced-recent-posts/enhanced-recent-posts.php
    • > /wp-content/plugins/enhanced-recent-posts/includes/plugin-class.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
6 plugin tags: posts, navigation, widget, latest posts, sidebar...

enhanced-recent-posts/enhanced-recent-posts.php Passed 13 tests

"Enhanced Recent Posts" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
43 characters long description:
Enhance the built-in "Recent Posts" widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin358 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3103159321
XML10037

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity19.50
▷ Minimum class complexity14.00
▷ Maximum class complexity25.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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 images were found in this plugin