84% rss-to-email-images

Code Review | RSS-to-Email Images

WordPress plugin RSS-to-Email Images scored 84% from 54 tests.

About plugin

  • Plugin page: rss-to-email-images
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: May 28, 2014
  • Latest release: Sep 8, 2014
  • Number of updates: 5
  • Update frequency: every 20.6 days
  • Top authors: macbookandrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 748 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.33ms] Passed 4 tests

A check of server-side resources used by RSS-to-Email Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.08 ▼5.34
Dashboard /wp-admin3.32 ▲0.0146.01 ▼3.76
Posts /wp-admin/edit.php3.37 ▲0.0149.20 ▲3.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.24 ▼12.83
Media Library /wp-admin/upload.php3.24 ▲0.0135.70 ▼3.38

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for RSS-to-Email Images
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.29 ▼1.391.82 ▼0.3238.05 ▼2.91
Dashboard /wp-admin2,203 ▲155.90 ▲0.05101.04 ▼8.1538.02 ▼8.55
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0539.88 ▲2.1335.39 ▲1.98
Add New Post /wp-admin/post-new.php1,534 ▲123.34 ▲0.15670.61 ▲38.0260.52 ▲6.32
Media Library /wp-admin/upload.php1,382 ▼64.24 ▲0.0795.73 ▼1.1641.23 ▼1.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rss-to-email-images/rss-to-email-images.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: rss

rss-to-email-images/rss-to-email-images.php Passed 13 tests

The entry point to "RSS-to-Email Images" version 1.1 is a PHP file that has certain tags in its header comment area
106 characters long description:
Fixes large images in RSS-to-email campaigns; based on http://css-tricks.com/dealing-content-images-email/

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
Everything looks great! No dangerous files found in this plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142730

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin