10% display-latest-rss-feeds

Code Review | Display Latest Feeds

WordPress plugin Display Latest Feeds scored10%from 54 tests.

About plugin

  • Plugin page: display-latest-rs...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 12, 2012
  • Latest release: Nov 12, 2012
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: lougie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,692 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/display-latest-rss-feeds/widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; LatestFeeds has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼56.64ms] Passed 4 tests

An overview of server-side resources used by Display Latest Feeds
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.386.34 ▼37.23
Dashboard /wp-admin2.10 ▼1.206.20 ▼47.21
Posts /wp-admin/edit.php2.10 ▼1.256.44 ▼44.84
Add New Post /wp-admin/post-new.php2.10 ▼3.796.69 ▼97.29
Media Library /wp-admin/upload.php2.10 ▼1.136.15 ▼28.49
Latest Feeds /wp-admin/options-general.php?page=loq-feeds2.105.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_latestfeeds
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Display Latest Feeds
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.72 ▲0.322.04 ▼0.8343.90 ▲0.44
Dashboard /wp-admin2,199 ▲225.57 ▼0.0793.62 ▼1.0941.33 ▼2.37
Posts /wp-admin/edit.php2,104 ▲72.02 ▲0.0539.28 ▲0.0135.57 ▼1.76
Add New Post /wp-admin/post-new.php1,537 ▲1118.50 ▼4.57628.78 ▼43.5970.83 ▲14.16
Media Library /wp-admin/upload.php1,407 ▲104.20 ▲0.0297.01 ▼5.8341.45 ▼3.25
Latest Feeds /wp-admin/options-general.php?page=loq-feeds8511.9925.8326.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/display-latest-rss-feeds/widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; LatestFeeds has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • widget_latestfeeds
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=loq-feeds
    • > Deprecated in wp-content/plugins/display-latest-rss-feeds/widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; LatestFeeds has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=loq-feeds
    • > Deprecated in wp-content/plugins/display-latest-rss-feeds/widget.php+29
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=loq-feeds
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in LatestFeeds is deprecated since version 4.3.0! Use __construct() instead.

SRP 50% from 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
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/display-latest-rss-feeds/function.php:5
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/display-latest-rss-feeds/index.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/display-latest-rss-feeds/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/display-latest-rss-feeds/index.php:11

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This is the frontend output of the plugin.), #2 (This is the backend form of the plugin)
The official readme.txt might help

display-latest-rss-feeds/index.php 92% from 13 tests

The principal PHP file in "Display Latest Feeds" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("display-latest-rss-feeds.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin229 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32913177
CSS112152

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin