10% rss-per-page

Code Review | rss-per-page

WordPress plugin rss-per-page scored10%from 54 tests.

About plugin

  • Plugin page: rss-per-page
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Nov 11, 2014
  • Latest release: Jan 8, 2017
  • Number of updates: 18
  • Update frequency: every 43.9 days
  • Top authors: jondor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,113 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/rss-per-page/rss-per-page-plugin.php+168
    Declaration of rss_per_page_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.02ms] Passed 4 tests

Server-side resources used by rss-per-page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.12 ▼36.33
Dashboard /wp-admin2.05 ▼1.265.39 ▼47.23
Posts /wp-admin/edit.php2.05 ▼1.315.34 ▼46.01
Add New Post /wp-admin/post-new.php2.05 ▼3.845.47 ▼90.52
Media Library /wp-admin/upload.php2.05 ▼1.184.92 ▼33.04
Funsite plugins /wp-admin/plugins.php?page=funsite_plugins2.055.45

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_rss_per_page_widget
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for rss-per-page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.25 ▼0.031.80 ▲0.0141.83 ▼6.58
Dashboard /wp-admin2,203 ▲325.66 ▲0.0690.79 ▼9.0741.45 ▼2.42
Posts /wp-admin/edit.php2,111 ▲142.00 ▼0.0245.59 ▲8.0941.07 ▲6.28
Add New Post /wp-admin/post-new.php1,533 ▲723.10 ▼0.13616.08 ▼92.6154.48 ▼11.15
Media Library /wp-admin/upload.php1,405 ▲54.19 ▼0.0396.76 ▼11.0041.72 ▼4.87
Funsite plugins /wp-admin/plugins.php?page=funsite_plugins8302.0024.9228.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/rss-per-page/rss-per-page-plugin.php+168
    Declaration of rss_per_page_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_rss_per_page_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/plugins.php?page=funsite_plugins
    • > Warning in wp-content/plugins/rss-per-page/rss-per-page-plugin.php+168
    Declaration of rss_per_page_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)
    • > GET request to /wp-admin/plugins.php?page=funsite_plugins
    • > Deprecated in wp-content/plugins/rss-per-page/rss-per-page-plugin.php+164
    Function create_function() is deprecated
    • > GET request to /wp-admin/plugins.php?page=funsite_plugins
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in rss_per_page_widget is deprecated since version 4.3.0! Use __construct() instead.

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === rss-per-page === )
The official readme.txt is a good inspiration

rss-per-page/rss-per-page.php Passed 13 tests

The principal PHP file in "rss-per-page" v. 1.6 is loaded by WordPress automatically on each request
84 characters long description:
Adds a field to pages and implements a widget to show a RSS depending on that field.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin316 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP25125173
CSS218082
PO File1141455
JavaScript1006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity9.50
▷ Minimum class complexity9.00
▷ Maximum class complexity10.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
basics/icon-128x128.png8.91KB4.47KB▼ 49.81%