10% rss-grabber

Code Review | rss grabber

WordPress plugin rss grabber scored10%from 54 tests.

About plugin

  • Plugin page: rss-grabber
  • Plugin version: 1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2023
  • Latest release: Jan 25, 2023
  • Number of updates: 58
  • Update frequency: every 0.1 days
  • Top authors: naimgr83 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /490 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method rss_grabber_opt::rss_grab_cron_adding() should not be called statically

Server metrics [RAM: ▼1.12MB] [CPU: ▼40.57ms] Passed 4 tests

A check of server-side resources used by rss grabber
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▼0.6115.81 ▼22.88
Dashboard /wp-admin2.89 ▼0.4115.82 ▼32.32
Posts /wp-admin/edit.php2.89 ▼0.4617.37 ▼38.53
Add New Post /wp-admin/post-new.php2.89 ▼2.9917.80 ▼68.53
Media Library /wp-admin/upload.php2.89 ▼0.3415.85 ▼19.08
SETTINGS /wp-admin/admin.php?page=sub-page2.8916.71
RSS-GRABBER /wp-admin/admin.php?page=rssgrabber-admin-menu2.8917.81

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
rss_grab_photo
rss_grab_video
widget_theysaidso_widget
rss_grab_cron
widget_recent-comments
rss_grab_status
db_upgraded
theysaidso_admin_options
rss_grab_cat
...

Browser metrics Passed 4 tests

Checking browser requirements for rss grabber
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7013.58 ▼1.101.73 ▼0.1337.77 ▼5.62
Dashboard /wp-admin2,236 ▲484.86 ▲0.01110.31 ▼6.2041.10 ▼2.75
Posts /wp-admin/edit.php2,116 ▲302.05 ▲0.0438.60 ▲1.7034.08 ▲2.66
Add New Post /wp-admin/post-new.php1,569 ▲2718.05 ▼0.62596.67 ▼76.0363.57 ▲9.22
Media Library /wp-admin/upload.php1,418 ▲304.23 ▼0.0597.58 ▼1.2240.63 ▼4.52
SETTINGS /wp-admin/admin.php?page=sub-page9762.0223.5030.00
RSS-GRABBER /wp-admin/admin.php?page=rssgrabber-admin-menu7942.0223.8124.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method rss_grabber_main::rss_grab_manuel_new() should not be called statically
  • The uninstall procedure has failed, leaving 11 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • rss_grab_cron
    • rss_grab_cat
    • db_upgraded
    • rss_grab_video
    • widget_theysaidso_widget
    • can_compress_scripts
    • rss_grab_status
    • rss_grab_photo
    • ...

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rssgrabber-admin-menu
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method rss_grabber_main::rss_grab_manuel_new() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rssgrabber-admin-menu
    • > Deprecated in wp-content/plugins/rss-grabber/rss_grabber.php+290
    Non-static method rss_grabber_main::rssgrabber_once() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rssgrabber-admin-menu
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method rss_grabber_main::rss_graber_admin_menu_option() should not be called statically
    • > GET request to /wp-admin/admin.php?page=sub-page
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method rss_grabber_main::rssgrabber_scripts_page() should not be called statically
    • > GET request to /wp-admin/admin.php?page=rssgrabber-admin-menu
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method rss_grabber_cnf::rss_grabber_saving() should not be called statically

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #3 in rss-grabber/assets to your readme.txt
The official readme.txt is a good inspiration

rss-grabber/rss_grabber.php 92% from 13 tests

Analyzing the main PHP file in "rss grabber" version 1.0
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rss-grabber.php" instead of "rss_grabber.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 detected686 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP364717686

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity34.00
▷ Minimum class complexity2.00
▷ Maximum class complexity78.00
Average method complexity6.82
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin