10% beautiful-recent-posts-widget

Code Review | Beautiful Recent Posts Widget

WordPress plugin Beautiful Recent Posts Widget scored 10% from 54 tests.

About plugin

  • Plugin page: beautiful-recent-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2014
  • Latest release: Dec 19, 2014
  • Number of updates: 13
  • Update frequency: every 3.9 days
  • Top authors: gauravtiwari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,547 total downloads

Benchmarks

Plugin footprint 40% 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
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/beautiful-recent-posts-widget/BRPWidget.php+113
    Function create_function() is deprecated

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

An overview of server-side resources used by Beautiful Recent Posts Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.24 ▼36.32
Dashboard /wp-admin2.05 ▼1.267.11 ▼45.96
Posts /wp-admin/edit.php2.05 ▼1.316.07 ▼46.29
Add New Post /wp-admin/post-new.php2.05 ▼3.845.54 ▼91.04
Media Library /wp-admin/upload.php2.05 ▼1.185.80 ▼26.18

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_brp_widget
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Beautiful Recent Posts Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.68 ▼0.714.53 ▲2.6039.41 ▼10.05
Dashboard /wp-admin2,208 ▲265.79 ▼0.06100.87 ▼5.0840.42 ▼6.37
Posts /wp-admin/edit.php2,094 ▲22.05 ▲0.0539.12 ▼3.1535.89 ▲1.67
Add New Post /wp-admin/post-new.php1,530 ▼323.11 ▲0.05640.27 ▼58.2762.84 ▲1.68
Media Library /wp-admin/upload.php1,393 ▲24.21 ▼0.0297.64 ▼2.6841.61 ▼0.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/beautiful-recent-posts-widget/BRPWidget.php+113
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_brp_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 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
3 plugin tags: sidebar, widget, posts

beautiful-recent-posts-widget/BRPWidget.php 92% from 13 tests

The main file in "Beautiful Recent Posts Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("beautiful-recent-posts-widget.php" instead of "BRPWidget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131092
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected