74% wp-rss-importer

Code Review | Wp RSS Importer

WordPress plugin Wp RSS Importer scored74%from 54 tests.

About plugin

  • Plugin page: wp-rss-importer
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Dec 9, 2015
  • Number of updates: 16
  • Update frequency: every 18.5 days
  • Top authors: dileep1984 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /10,333 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.01ms] Passed 4 tests

A check of server-side resources used by Wp RSS Importer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.23 ▼2.41
Dashboard /wp-admin3.39 ▲0.0949.55 ▼4.58
Posts /wp-admin/edit.php3.50 ▲0.1553.01 ▼5.76
Add New Post /wp-admin/post-new.php5.97 ▲0.0986.57 ▼18.12
Media Library /wp-admin/upload.php3.31 ▲0.0837.80 ▼3.59
Setting /wp-admin/admin.php?page=logics_setting_rss3.2834.11
Add RSS /wp-admin/admin.php?page=logics_add_rss3.2935.80
Manage RSS /wp-admin/admin.php?page=logics_managerss3.3734.74

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: 1 new table, 8 new options
New tables
wp_rss_settings
New WordPress options
logics_db_version
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
logics_sourcelink

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wp RSS Importer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.58 ▼1.061.85 ▼0.0346.11 ▲2.01
Dashboard /wp-admin2,239 ▲484.92 ▼0.98102.72 ▲2.3275.88 ▲34.32
Posts /wp-admin/edit.php2,128 ▲361.97 ▼0.0839.95 ▼2.7135.49 ▼1.37
Add New Post /wp-admin/post-new.php1,699 ▲18022.42 ▼0.92770.49 ▲94.4160.13 ▲12.18
Media Library /wp-admin/upload.php1,427 ▲424.15 ▼0.0696.03 ▼10.5476.06 ▲30.32
Setting /wp-admin/admin.php?page=logics_setting_rss8412.0124.6127.72
Add RSS /wp-admin/admin.php?page=logics_add_rss9212.0324.7127.16
Manage RSS /wp-admin/admin.php?page=logics_managerss1,0242.0328.0828.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_rss_settings
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • logics_sourcelink
    • widget_recent-posts
    • logics_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-rss-importer/wp-rss-importer.php:112
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-rss-importer/admin/class-rss-overview.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-rss-importer/admin/templates/setting-rss.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'LOGICS_PLUGIN_DIRadmin/class-rss-overview.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-rss-importer/admin/templates/rss-overview.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function absint() in wp-content/plugins/wp-rss-importer/admin/templates/edit-rss.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-rss-importer/admin/class-rss-overview.php on line 3
    • > PHP Warning
      require_once(LOGICS_PLUGIN_DIRadmin/class-rss-overview.php): failed to open stream: No such file or directory in wp-content/plugins/wp-rss-importer/admin/templates/rss-overview.php on line 2
    • > PHP Warning
      Use of undefined constant LOGICS_PLUGIN_DIR - assumed 'LOGICS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-rss-importer/admin/templates/rss-overview.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-rss-importer/admin/class-rss-overview.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/wp-rss-importer/admin/templates/add-rss.php:3

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 errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
The official readme.txt might help

wp-rss-importer/wp-rss-importer.php Passed 13 tests

The entry point to "Wp RSS Importer" version 2.0.2 is a PHP file that has certain tags in its header comment area
132 characters long description:
An easy to use RSS management system for wordpress that save posts from RSS url. This plugin works for any post or custom post type.

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
Good job! No executable or dangerous file extensions detected789 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7165204789

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity26.67
▷ Minimum class complexity21.00
▷ Maximum class complexity34.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods3497.14%
▷ Protected methods00.00%
▷ Private methods12.86%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png8.15KB5.00KB▼ 38.61%
screenshot-3.png13.68KB7.16KB▼ 47.66%
img/rss.png0.69KB0.66KB▼ 5.08%
screenshot-1.png8.31KB5.80KB▼ 30.17%