72% import-xml-feed

Code Review | Import XML and RSS Feeds

WordPress plugin Import XML and RSS Feeds scored 72% from 54 tests.

About plugin

  • Plugin page: import-xml-feed
  • Plugin version: 2.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Feb 10, 2016
  • Latest release: Aug 25, 2023
  • Number of updates: 69
  • Update frequency: every 39.9 days
  • Top authors: MooveAgency (56.52%)gaspar.nemes (44.93%)

Code review

54 tests

User reviews

24 reviews

Install metrics

3,000+ active / 106,826 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▼0.54ms] Passed 4 tests

Analyzing server-side resources used by Import XML and RSS Feeds
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2643.09 ▼1.91
Dashboard /wp-admin3.57 ▲0.2648.59 ▲0.66
Posts /wp-admin/edit.php3.68 ▲0.3251.63 ▲3.00
Add New Post /wp-admin/post-new.php6.17 ▲0.2895.29 ▼3.93
Media Library /wp-admin/upload.php3.49 ▲0.2638.91 ▲6.72
Import Feed /wp-admin/options-general.php?page=moove-importer3.5633.81

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Import XML and RSS Feeds
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4313.30 ▼1.441.57 ▼0.5137.94 ▼4.36
Dashboard /wp-admin2,217 ▲294.86 ▼0.01110.00 ▼5.2543.17 ▲2.59
Posts /wp-admin/edit.php2,100 ▲112.11 ▲0.1047.03 ▲7.5551.39 ▲13.18
Add New Post /wp-admin/post-new.php1,524 ▼2717.75 ▼0.49606.16 ▲11.8958.87 ▲3.75
Media Library /wp-admin/upload.php1,399 ▲144.30 ▲0.1195.89 ▼6.2644.24 ▼1.34
Import Feed /wp-admin/options-general.php?page=moove-importer1,4592.1428.8437.42

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=moove-importer
    • > User deprecated in wp-includes/functions.php+5737
    Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/import-xml-feed/views/moove/admin/settings/plugin_templates.php
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/import-xml-feed/views/moove/admin/settings/plugin_templates.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/import-xml-feed/moove-importer.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/import-xml-feed/views/moove/admin/settings/documentation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/import-xml-feed/views/moove/admin/settings/addons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/import-xml-feed/views/moove/admin/settings/settings_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/import-xml-feed/views/moove/admin/settings/template_view.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/import-xml-feed/views/moove/admin/settings/post_type.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-xml-feed/controllers/moove-controller.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/import-xml-feed/moove-actions.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-xml-feed/controllers/moove-controller.php:28

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: feed, json, rss, xml, import

import-xml-feed/moove-importer.php 92% from 13 tests

The primary PHP file in "Import XML and RSS Feeds" version 2.1.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("import-xml-feed.php" instead of "moove-importer.php")

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
Good job! No executable or dangerous file extensions detected4,150 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP151692531,977
CSS14621,011
JavaScript1828748
PO File2127128412
SVG2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity37.17
▷ Minimum class complexity1.00
▷ Maximum class complexity145.00
Average method complexity6.71
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods38
▷ Static methods12.63%
▷ Public methods3489.47%
▷ Protected methods00.00%
▷ Private methods410.53%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png1.45KB1.33KB▼ 7.95%
assets/images/logo_moove.png3.72KB1.45KB▼ 60.99%