78% lh-rss-shortcode

Code Review | LH RSS Shortcode

WordPress plugin LH RSS Shortcode scored 78% from 54 tests.

About plugin

  • Plugin page: lh-rss-shortcode
  • Plugin version: 1.00
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: May 14, 2019
  • Latest release: May 14, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 553 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by LH RSS Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.74 ▼3.85
Dashboard /wp-admin3.31 ▲0.0147.48 ▼4.35
Posts /wp-admin/edit.php3.36 ▲0.0043.08 ▼7.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.59 ▼10.64
Media Library /wp-admin/upload.php3.23 ▲0.0034.71 ▼3.08

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for LH RSS Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.63 ▼0.701.61 ▼0.0638.02 ▼13.26
Dashboard /wp-admin2,206 ▲184.84 ▼1.12109.55 ▲4.6142.21 ▲0.25
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0334.94 ▼2.3833.81 ▼2.35
Add New Post /wp-admin/post-new.php1,544 ▲218.44 ▼4.76660.85 ▼11.0158.44 ▲1.64
Media Library /wp-admin/upload.php1,388 ▲64.21 ▼0.0393.69 ▼15.9240.54 ▼11.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/lh-rss-shortcode/lh_rss_shortcode-templates/excerpts.php
    • > /wp-content/plugins/lh-rss-shortcode/lh_rss_shortcode-templates/default.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'items' of non-object in wp-content/plugins/lh-rss-shortcode/lh_rss_shortcode-templates/default.php on line 2
    • > PHP Notice
      Undefined variable: rss in wp-content/plugins/lh-rss-shortcode/lh_rss_shortcode-templates/excerpts.php on line 2
    • > PHP Notice
      Undefined variable: rss in wp-content/plugins/lh-rss-shortcode/lh_rss_shortcode-templates/default.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-rss-shortcode/lh-rss-shortcode.php:93
    • > PHP Notice
      Trying to get property 'items' of non-object in wp-content/plugins/lh-rss-shortcode/lh_rss_shortcode-templates/excerpts.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: shortcode, rss, feed, fetch_rss, atom

lh-rss-shortcode/lh-rss-shortcode.php 92% from 13 tests

"LH RSS Shortcode" version 1.00's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin61 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3481761

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin