89% recent-post-slider-with-widget

Code Review | Recent Posts Slider with Widget

WordPress plugin Recent Posts Slider with Widget scored 89% from 54 tests.

About plugin

  • Plugin page: recent-post-slide...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.5.1
  • WordPress version: 5.8.1
  • First release: Aug 10, 2019
  • Latest release: Oct 11, 2020
  • Number of updates: 23
  • Update frequency: every 18.7 days
  • Top authors: pareshpachani007 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 2,778 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼154.46ms] Passed 4 tests

This is a short check of server-side resources used by Recent Posts Slider with Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.1332.64 ▲3.75
Dashboard /wp-admin3.28 ▲0.2136.08 ▼4.37
Posts /wp-admin/edit.php3.39 ▲0.2832.96 ▼2.50
Add New Post /wp-admin/post-new.php5.64 ▲0.2075.62 ▼609.88
Media Library /wp-admin/upload.php3.22 ▲0.2127.38 ▼1.07

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 1 new option
New WordPress options
widget_rpsw_rpsw

Browser metrics Passed 4 tests

Checking browser requirements for Recent Posts Slider with Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,690 ▲3915.77 ▼0.284.98 ▼1.5776.40 ▼4.28
Dashboard /wp-admin2,951 ▲566.16 ▼0.01116.10 ▼13.02167.63 ▼3.31
Posts /wp-admin/edit.php2,758 ▲183.24 ▲0.0068.03 ▼0.44139.03 ▼23.50
Add New Post /wp-admin/post-new.php3,755 ▼5218.73 ▲0.07407.37 ▼40.07159.01 ▼6.71
Media Library /wp-admin/upload.php1,767 ▲125.54 ▲0.07136.73 ▼4.97182.47 ▲0.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_rpsw_rpsw

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

recent-post-slider-with-widget/recent-post-slider-with-widget.php 92% from 13 tests

This is the main PHP file of "Recent Posts Slider with Widget" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin2,411 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP121582271,394
SVG200725
CSS4215192
JavaScript301100

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity15.50
▷ Minimum class complexity5.00
▷ Maximum class complexity26.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin