10% pro-recent-post-widget

Code Review | Pro Recent Post Widget

WordPress plugin Pro Recent Post Widget scored10%from 54 tests.

About plugin

  • Plugin page: pro-recent-post-w...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Feb 4, 2013
  • Latest release: Dec 18, 2015
  • Number of updates: 13
  • Update frequency: every 80.8 days
  • Top authors: shambhu patnaik (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /4,531 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/pro-recent-post-widget/pro-recent-post-widget.php+129
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.05ms] Passed 4 tests

This is a short check of server-side resources used by Pro Recent Post Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.37 ▼35.55
Dashboard /wp-admin2.05 ▼1.269.50 ▼50.91
Posts /wp-admin/edit.php2.05 ▼1.315.92 ▼39.28
Add New Post /wp-admin/post-new.php2.05 ▼3.847.45 ▼94.47
Media Library /wp-admin/upload.php2.05 ▼1.185.91 ▼27.76

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_pro_recent_post
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Pro Recent Post Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.26 ▼1.124.27 ▲2.2041.67 ▼2.77
Dashboard /wp-admin2,203 ▲155.81 ▼0.02100.01 ▼8.8837.54 ▼3.99
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0038.87 ▲1.5136.21 ▲1.74
Add New Post /wp-admin/post-new.php1,540 ▼223.24 ▲5.00598.55 ▼63.6849.53 ▼4.32
Media Library /wp-admin/upload.php1,388 ▼34.28 ▲0.0994.74 ▼8.9243.60 ▼4.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/pro-recent-post-widget/pro-recent-post-widget.php+129
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_pro_recent_post
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pro-recent-post-widget/index.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pro-recent-post-widget/pro-recent-post-widget.php:10

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

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
7 plugin tags: exclude category, custom recent post, advanced recent posts widget, exclude post in recent post widget, exclude post...

pro-recent-post-widget/pro-recent-post-widget.php Passed 13 tests

The main PHP script in "Pro Recent Post Widget" version 1.1 is automatically included on every request by WordPress
83 characters long description:
Pro Recent Post Widget plugin.You have choice to specific category recent post show

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin96 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP264696

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.61KB3.52KB▼ 46.69%