84% featured-image-rss-enclosure

Code Review | Featured Image RSS Enclosure

WordPress plugin Featured Image RSS Enclosure scored84%from 54 tests.

About plugin

  • Plugin page: featured-image-rs...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Oct 4, 2017
  • Latest release: Oct 4, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: timmcdaniels (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,428 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
Installer ran successfully

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

An overview of server-side resources used by Featured Image RSS Enclosure
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.87 ▼4.68
Dashboard /wp-admin3.32 ▼0.0344.35 ▼11.75
Posts /wp-admin/edit.php3.37 ▲0.0146.73 ▲0.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.78 ▼5.39
Media Library /wp-admin/upload.php3.24 ▲0.0135.80 ▲2.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Featured Image RSS Enclosure
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.29 ▼1.072.02 ▲0.1244.56 ▲1.75
Dashboard /wp-admin2,209 ▲215.86 ▲0.04106.69 ▼2.1741.77 ▼2.33
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0439.58 ▲0.1137.10 ▲0.69
Add New Post /wp-admin/post-new.php1,514 ▼1917.37 ▼5.74685.24 ▲102.9858.17 ▲1.27
Media Library /wp-admin/upload.php1,382 ▼64.15 ▼0.0893.81 ▼5.2642.48 ▼2.63

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 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/featured-image-rss-enclosure/featured-image-rss-enclosure.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No plugin tags provided

featured-image-rss-enclosure/featured-image-rss-enclosure.php Passed 13 tests

The primary PHP file in "Featured Image RSS Enclosure" version 1.0 is used by WordPress to initiate all plugin functionality
127 characters long description:
Add featured images as separate enclosure fields in your site's RSS rather than having these images embedded with post content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172121

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
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

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