90% rw-recent-post

Code Review | RW Recent Post

WordPress plugin RW Recent Post scored90%from 54 tests.

About plugin

  • Plugin page: rw-recent-post
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 1, 2021
  • Latest release: Jul 3, 2022
  • Number of updates: 36
  • Update frequency: every 15.3 days
  • Top authors: webdevramyash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /453 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.01MB] [CPU: ▼12.49ms] Passed 4 tests

An overview of server-side resources used by RW Recent Post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.57 ▼1.47
Dashboard /wp-admin3.33 ▼0.0150.90 ▼13.82
Posts /wp-admin/edit.php3.38 ▲0.0244.86 ▼4.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.04 ▼30.32
Media Library /wp-admin/upload.php3.25 ▲0.0237.00 ▲2.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for RW Recent Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.21 ▼1.161.70 ▼1.0242.70 ▲1.09
Dashboard /wp-admin2,206 ▲154.89 ▼0.2097.23 ▼7.4639.96 ▼4.18
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0236.36 ▼0.9333.48 ▼5.66
Add New Post /wp-admin/post-new.php1,535 ▲1623.24 ▲0.22668.07 ▲32.2359.35 ▲6.54
Media Library /wp-admin/upload.php1,388 ▼04.19 ▲0.06103.56 ▲1.6443.51 ▲1.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
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 a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: woocommerce, recent post, news

rw-recent-post/main.php 92% from 13 tests

Analyzing the main PHP file in "RW Recent Post" version 1.1.1
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("rw-recent-post.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin318 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1432189
PHP41518129

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/arrow-bullets-icon.png0.60KB0.43KB▼ 29.13%