90% mailerlite-featured-image-in-rss-feed

Code Review | Featured Image in RSS Feed by MailerLite

WordPress plugin Featured Image in RSS Feed by MailerLite scored90%from 54 tests.

About plugin

  • Plugin page: mailerlite-featur...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2018
  • Latest release: Sep 27, 2022
  • Number of updates: 17
  • Update frequency: every 92.1 days
  • Top authors: mailerlite (88.24%)flowdee (17.65%)

Code review

54 tests

User reviews

1 review

Install metrics

5,000+ active /16,916 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.99ms] Passed 4 tests

Analyzing server-side resources used by Featured Image in RSS Feed by MailerLite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0050.78 ▲8.03
Dashboard /wp-admin3.32 ▼0.0247.51 ▼16.44
Posts /wp-admin/edit.php3.37 ▲0.0248.74 ▲2.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.89 ▼18.12
Media Library /wp-admin/upload.php3.25 ▲0.0239.01 ▲4.43
Featured Image in RSS Feed /wp-admin/options-general.php?page=mailerlite_firss3.2133.96

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Featured Image in RSS Feed by MailerLite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.28 ▲0.101.99 ▲0.0243.89 ▲0.10
Dashboard /wp-admin2,202 ▲255.59 ▼0.0886.62 ▼11.8637.50 ▼3.91
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0438.37 ▼1.8834.94 ▼1.60
Add New Post /wp-admin/post-new.php1,531 ▲323.17 ▼0.21663.43 ▲34.1857.42 ▲7.84
Media Library /wp-admin/upload.php1,407 ▲104.24 ▲0.0598.47 ▼3.0143.69 ▼2.54
Featured Image in RSS Feed /wp-admin/options-general.php?page=mailerlite_firss8792.0025.7326.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: rss feed, mailerlite, featured image, rss, feed...

mailerlite-featured-image-in-rss-feed/mailerlite-featured-image-in-rss-feed.php Passed 13 tests

Analyzing the main PHP file in "Featured Image in RSS Feed by MailerLite" version 1.0.7
79 characters long description:
This plugin automatically adds featured images of your posts into the RSS feed.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected282 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP798209282

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected