84% rss-enhancements-for-the-events-calendar

Code Review | RSS Enhancements for The Events Calendar

WordPress plugin RSS Enhancements for The Events Calendar scored84%from 54 tests.

About plugin

  • Plugin page: rss-enhancements-...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Nov 10, 2016
  • Latest release: Oct 27, 2022
  • Number of updates: 11
  • Update frequency: every 198.4 days
  • Top authors: room34 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /2,967 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by RSS Enhancements for The Events Calendar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.68 ▼1.26
Dashboard /wp-admin3.31 ▲0.0150.74 ▼1.08
Posts /wp-admin/edit.php3.36 ▲0.0148.94 ▼5.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.73 ▲1.86
Media Library /wp-admin/upload.php3.24 ▲0.0135.82 ▲2.76

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
r34ecre_days
widget_recent-posts
r34ecre_image_size
r34ecre_max_events
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for RSS Enhancements for The Events Calendar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲2114.17 ▼0.481.97 ▼0.1442.18 ▼2.27
Dashboard /wp-admin2,210 ▲395.50 ▼0.1589.86 ▼4.1737.98 ▼3.67
Posts /wp-admin/edit.php2,119 ▲191.99 ▼0.0437.90 ▼4.8536.92 ▼0.16
Add New Post /wp-admin/post-new.php1,544 ▲923.51 ▲5.21616.75 ▼66.6160.34 ▼8.98
Media Library /wp-admin/upload.php1,421 ▲184.18 ▼0.03102.15 ▼2.4544.19 ▼0.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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: 9 options
    • can_compress_scripts
    • r34ecre_max_events
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • r34ecre_image_size
    • widget_recent-comments
    • theysaidso_admin_options
    • r34ecre_days

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 everything seems fine, this is not 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/rss-enhancements-for-the-events-calendar/admin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: the events calendar, feeds, rss

rss-enhancements-for-the-events-calendar/rss-enhancements-for-the-events-calendar.php 92% from 13 tests

This is the main PHP file of "RSS Enhancements for The Events Calendar" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin159 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24443159

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin