84% rss-image-resize

Code Review | RSS Image Resize

WordPress plugin RSS Image Resize scored84%from 54 tests.

About plugin

  • Plugin page: rss-image-resize
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.4
  • WordPress version: 6.3.1
  • First release: Jan 16, 2014
  • Latest release: Dec 9, 2015
  • Number of updates: 17
  • Update frequency: every 40.7 days
  • Top authors: Gwendydd (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /4,659 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.91ms] Passed 4 tests

Server-side resources used by RSS Image Resize
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.51 ▼9.14
Dashboard /wp-admin3.38 ▲0.0345.88 ▼16.10
Posts /wp-admin/edit.php3.49 ▲0.1347.99 ▲0.22
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.68 ▼0.45
Media Library /wp-admin/upload.php3.30 ▲0.0732.93 ▼1.95
RSS Image Resize /wp-admin/options-general.php?page=rss-image-resize3.2527.98

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for RSS Image Resize
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.56 ▼0.444.59 ▲2.7540.13 ▼2.17
Dashboard /wp-admin2,210 ▲224.84 ▼1.02108.25 ▲1.1841.65 ▲0.41
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0340.13 ▼0.5837.03 ▲0.49
Add New Post /wp-admin/post-new.php1,536 ▲2223.33 ▼0.11633.69 ▲17.3648.93 ▼2.52
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.0097.37 ▼0.9941.48 ▼2.81
RSS Image Resize /wp-admin/options-general.php?page=rss-image-resize8592.0321.9129.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rss-image-resize
    • > Notice in wp-content/plugins/rss-image-resize/admin/class-rss-image-resize-admin.php+138
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: rss, image

rss-image-resize/rss-image-resize.php Passed 13 tests

This is the main PHP file of "RSS Image Resize" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
59 characters long description:
Resize images in RSS feeds so they will fit in HTML emails.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected347 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9148491325
PO File13322

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2268.75%
▷ Protected methods00.00%
▷ Private methods1031.25%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin