79% rsskingpro

Code Review | RSS King Pro

WordPress plugin RSS King Pro scored79%from 54 tests.

About plugin

  • Plugin page: rsskingpro
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2013
  • Latest release: Jul 3, 2014
  • Number of updates: 14
  • Update frequency: every 20.1 days
  • Top authors: ashdurham (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /4,725 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.15MB] [CPU: ▼2.41ms] Passed 4 tests

Server-side resources used by RSS King Pro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1637.56 ▼3.65
Dashboard /wp-admin3.45 ▲0.1543.96 ▼2.27
Posts /wp-admin/edit.php3.50 ▲0.1547.45 ▲1.42
Add New Post /wp-admin/post-new.php6.03 ▲0.1583.02 ▼5.14
Media Library /wp-admin/upload.php3.37 ▲0.1539.34 ▲10.62
RSS King Pro /wp-admin/admin.php?page=rsskingpro3.3633.08
King Pro Plugins /wp-admin/admin.php?page=kpp_menu3.3533.97

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_rsskingpro_widget
rsspk_db_version
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by RSS King Pro
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲15913.59 ▼0.698.21 ▲6.1740.86 ▼6.64
Dashboard /wp-admin2,239 ▲484.86 ▼0.0497.50 ▼12.1044.35 ▼0.17
Posts /wp-admin/edit.php2,119 ▲301.97 ▼0.0441.26 ▲5.9935.69 ▲2.19
Add New Post /wp-admin/post-new.php1,539 ▲317.82 ▼5.19651.43 ▼12.7558.04 ▲7.72
Media Library /wp-admin/upload.php1,418 ▲364.23 ▲0.0699.58 ▲3.1740.78 ▼0.80
RSS King Pro /wp-admin/admin.php?page=rsskingpro1,2162.0823.8745.72
King Pro Plugins /wp-admin/admin.php?page=kpp_menu9492.0425.8333.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • rsspk_db_version
    • widget_recent-posts
    • widget_rsskingpro_widget

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/admin.php?page=rsskingpro
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=rsskingpro
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rsskingpro/rsskingpro.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rsskingpro/includes/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rsskingpro/includes/screens/kpp.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rsskingpro/includes/admin_area.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rsskingpro/includes/output.php:259
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/rsskingpro/includes/screens/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
7 plugin tags: items, feed, links, ajax, paging...

rsskingpro/rsskingpro.php Passed 13 tests

The main PHP script in "RSS King Pro" version 1.0.9 is automatically included on every request by WordPress
63 characters long description:
RSS King Pro allows you display and format a RSS feed on a page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,752 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP69758760
CSS3292574
SVG100399
JavaScript11019

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity72.00
▷ Minimum class complexity72.00
▷ Maximum class complexity72.00
Average method complexity18.75
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/rsskp-icon_32x32.png2.54KB1.58KB▼ 37.91%
images/kpp-icon_16x16.png1.75KB0.85KB▼ 51.14%
images/kpp-icon_32x32_sat.png2.88KB1.59KB▼ 44.89%
images/kpp-icon_16x16_sat.png1.75KB0.85KB▼ 51.28%
images/rsskp-icon_16x16.png1.70KB0.91KB▼ 46.88%