84% surbma-recent-comments-shortcode

Code Review | Surbma | Recent Comments Shortcode

WordPress plugin Surbma | Recent Comments Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: surbma-recent-com...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2015
  • Latest release: Apr 8, 2023
  • Number of updates: 11
  • Update frequency: every 268.9 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,874 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.05ms] Passed 4 tests

This is a short check of server-side resources used by Surbma | Recent Comments Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.47 ▼2.46
Dashboard /wp-admin3.31 ▲0.0048.40 ▼5.35
Posts /wp-admin/edit.php3.36 ▲0.0050.60 ▲0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.07 ▲3.48
Media Library /wp-admin/upload.php3.23 ▲0.0036.20 ▼1.23

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Surbma | Recent Comments Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.19 ▼0.201.73 ▼0.6339.92 ▼8.81
Dashboard /wp-admin2,195 ▲185.58 ▼0.0884.63 ▼16.5437.07 ▼5.83
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0439.04 ▲0.5336.26 ▲1.99
Add New Post /wp-admin/post-new.php1,545 ▲1923.08 ▲5.42653.27 ▼54.7556.64 ▼18.86
Media Library /wp-admin/upload.php1,394 ▼34.30 ▲0.1696.96 ▼6.4343.16 ▼1.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/surbma-recent-comments-shortcode/surbma-recent-comments-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: shortcode, comments, recent comments

surbma-recent-comments-shortcode/surbma-recent-comments-shortcode.php 92% from 13 tests

The main PHP file in "Surbma | Recent Comments Shortcode" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected48 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131345
Markdown1103

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin