84% rssjs

Code Review | RSSJS

WordPress plugin RSSJS scored84%from 54 tests.

About plugin

  • Plugin page: rssjs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Dec 4, 2013
  • Latest release: Jul 12, 2018
  • Number of updates: 4
  • Update frequency: every 420.0 days
  • Top authors: Otto42 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,816 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.79ms] Passed 4 tests

This is a short check of server-side resources used by RSSJS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.53 ▼5.15
Dashboard /wp-admin3.32 ▲0.0150.81 ▼1.39
Posts /wp-admin/edit.php3.37 ▲0.0153.29 ▲1.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.48 ▼1.78
Media Library /wp-admin/upload.php3.24 ▲0.0139.04 ▲3.97

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for RSSJS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.60 ▲0.251.76 ▼0.2143.20 ▼5.84
Dashboard /wp-admin2,195 ▲215.63 ▲0.0591.00 ▼4.4640.02 ▼4.17
Posts /wp-admin/edit.php2,103 ▼01.96 ▼0.0141.05 ▲2.9638.61 ▲3.64
Add New Post /wp-admin/post-new.php1,526 ▼223.18 ▼0.18657.43 ▼20.0654.03 ▼0.23
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.02103.01 ▼6.1145.09 ▼1.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rssjs/rssjs.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/rssjs/feed-rssjs.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_singular() in wp-content/plugins/rssjs/feed-rssjs-comments.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: javascript, rss, feed, rssjs

rssjs/rssjs.php Passed 13 tests

The entry point to "RSSJS" version 1.0 is a PHP file that has certain tags in its header comment area
34 characters long description:
Create an RSSJS feed for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin142 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34687142

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.18
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin