89% rss-import

Code Review | RSSImport

WordPress plugin RSSImport scored 89% from 54 tests.

About plugin

  • Plugin page: rss-import
  • Plugin version: 4.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-5.3
  • WordPress version: 5.9.2
  • First release: Mar 19, 2007
  • Latest release: Dec 25, 2019
  • Number of updates: 169
  • Update frequency: every 27.6 days
  • Top authors: Bueltge (72.78%)took77 (24.26%)novaclic (4.14%)

Code review

54 tests

User reviews

16 reviews

Install metrics

10,000+ active / 269,447 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼343.54ms] Passed 4 tests

Analyzing server-side resources used by RSSImport
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3457.15 ▲4.43
Dashboard /wp-admin3.74 ▲0.3334.00 ▼2.98
Posts /wp-admin/edit.php3.97 ▲0.3237.43 ▼8.27
Add New Post /wp-admin/post-new.php7.21 ▲0.2499.34 ▼1,366.22
Media Library /wp-admin/upload.php3.62 ▲0.3327.17 ▲3.32

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
widget_rssimport

Browser metrics Passed 4 tests

An overview of browser requirements for RSSImport
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4615.87 ▲0.205.84 ▼0.442.47 ▼0.28
Dashboard /wp-admin2,892 ▲316.12 ▼0.13119.61 ▼13.14156.95 ▲2.09
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0063.66 ▼2.30142.34 ▼3.49
Add New Post /wp-admin/post-new.php1,714 ▲2420.63 ▼0.58453.30 ▲16.32156.53 ▼6.27
Media Library /wp-admin/upload.php1,701 ▲65.51 ▼0.02140.86 ▲5.81182.45 ▼3.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_rssimport

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: post, feed, content, rss

rss-import/rssimport.php 77% from 13 tests

Analyzing the main PHP file in "RSSImport" version 4.6.1
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rss-import.php" instead of "rssimport.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,566 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1901932,566

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity64.00
▷ Minimum class complexity64.00
▷ Maximum class complexity64.00
Average method complexity16.75
▷ Minimum method complexity1.00
▷ Maximum method complexity41.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 functions1292.31%
▷ Anonymous functions17.69%
Constants12
▷ Global constants12100.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 files were detected