10% rss-synchronization

Code Review | RSS Synchronisation

WordPress plugin RSS Synchronisation scored10%from 54 tests.

About plugin

  • Plugin page: rss-synchronization
  • Plugin version: 0.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2014
  • Latest release: Mar 12, 2014
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: lightsystem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,280 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/rss-synchronization/public/class-rss-sync.php+227
    Undefined variable: chosen_recurrence

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.41ms] Passed 4 tests

This is a short check of server-side resources used by RSS Synchronisation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.66 ▼0.04
Dashboard /wp-admin3.42 ▲0.0749.16 ▼10.98
Posts /wp-admin/edit.php3.53 ▲0.1750.55 ▼5.55
Add New Post /wp-admin/post-new.php6.00 ▲0.1185.60 ▼17.05
Media Library /wp-admin/upload.php3.34 ▲0.1142.27 ▲3.58
RSS Settings /wp-admin/options-general.php?page=rss-sync3.2834.81

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by RSS Synchronisation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.34 ▲0.051.72 ▼0.4737.12 ▼9.56
Dashboard /wp-admin2,199 ▲195.59 ▲0.0384.85 ▼5.7337.25 ▼9.73
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0040.77 ▼1.9936.56 ▼4.59
Add New Post /wp-admin/post-new.php1,529 ▲123.35 ▲0.21647.17 ▼38.3562.38 ▲7.50
Media Library /wp-admin/upload.php1,407 ▲74.19 ▲0.04110.66 ▲2.8048.27 ▲3.89
RSS Settings /wp-admin/options-general.php?page=rss-sync9261.6629.8730.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=rss-sync
    • > 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/options-general.php?page=rss-sync
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=rss-sync
    • > Deprecated in wp-admin/includes/template.php+1771
    Non-static method RSS_Sync_AdminSettings::rss_options() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=rss-sync
    • > Deprecated in wp-admin/includes/template.php+1824
    Non-static method RSS_Sync_AdminSettings::rss_feeds() should not be called statically
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rss-sync
    • > Notice in wp-content/plugins/rss-synchronization/admin/views/admin.php+105
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=rss-sync
    • > Deprecated in wp-admin/includes/template.php+1824
    Non-static method RSS_Sync_AdminSettings::rss_sync_refresh() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=rss-sync
    • > Deprecated in wp-admin/includes/template.php+1824
    Non-static method RSS_Sync_AdminSettings::image_storage_options() should not be called statically

SRP 50% from 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
Please take a closer look at the following
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rss-synchronization/includes/class-rss-sync-tools.php on line 12
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/rss-synchronization/includes/class-rss-sync-tools.php on line 11
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-content/plugins/rss-synchronization/includes/class-rss-sync-tools.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/rss-synchronization/public/class-rss-sync.php on line 11
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/rss-synchronization/includes/class-rss-sync-tools.php on line 11
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/image.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/rss-synchronization/includes/class-rss-sync-tools.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rss-synchronization/includes/class-rss-sync-tools.php on line 11
    • > PHP Warning
      include_once(ABSPATHwp-content/plugins/rss-synchronization/includes/class-rss-sync-tools.php): failed to open stream: No such file or directory in wp-content/plugins/rss-synchronization/public/class-rss-sync.php on line 11
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/rss-synchronization/includes/class-rss-sync-tools.php on line 11
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/rss-synchronization/includes/class-rss-sync-tools.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rss-synchronization/public/class-rss-sync.php on line 11

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=rss-sync
    • > Network (severe)
    wp-content/plugins/rss-synchronization/admin/assets/css/admin.css?ver=0.5.3 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: plugin, rss, wordpress

rss-synchronization/rss-sync.php 85% from 13 tests

The primary PHP file in "RSS Synchronisation" version 0.5.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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-synchronization.php" instead of "rss-sync.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected518 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7215356504
JavaScript16014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.25
▷ Minimum class complexity6.00
▷ Maximum class complexity36.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods38
▷ Static methods1128.95%
▷ Public methods2771.05%
▷ Protected methods00.00%
▷ Private methods1128.95%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin