10% rs-event-multiday

Code Review | RS EVENT multiday

WordPress plugin RS EVENT multiday scored 10% from 54 tests.

About plugin

  • Plugin page: rs-event-multiday
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5
  • WordPress version: 6.3.1
  • First release: Apr 21, 2009
  • Latest release: Oct 10, 2014
  • Number of updates: 81
  • Update frequency: every 24.7 days
  • Top authors: wp-lefty (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 21,877 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/rs-event-multiday/rs-event-multiday.php+1314
    Use of undefined constant rs_event_widgets - assumed 'rs_event_widgets' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.07ms] Passed 4 tests

Analyzing server-side resources used by RS EVENT multiday
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.70 ▼42.72
Dashboard /wp-admin2.05 ▼1.266.43 ▼43.20
Posts /wp-admin/edit.php2.05 ▼1.316.87 ▼39.98
Add New Post /wp-admin/post-new.php2.05 ▼3.846.31 ▼82.38
Media Library /wp-admin/upload.php2.05 ▼1.185.95 ▼27.26

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_rs_event_widget
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by RS EVENT multiday
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.204.27 ▲2.3443.68 ▼4.47
Dashboard /wp-admin2,206 ▲174.86 ▼0.06104.81 ▼19.6939.54 ▼5.76
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0239.19 ▲2.1434.70 ▲0.39
Add New Post /wp-admin/post-new.php7,590 ▲6,07620.23 ▲2.35868.59 ▲197.1775.94 ▲16.91
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.0095.17 ▼7.4441.00 ▼1.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/rs-event-multiday/rs-event-multiday.php+1314
    Use of undefined constant rs_event_widgets - assumed 'rs_event_widgets' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_rs_event_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at 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/rs-event-multiday/rs-event-multiday.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

rs-event-multiday/rs-event-multiday.php 92% from 13 tests

The main PHP script in "RS EVENT multiday" version 1.3.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 314 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,864 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP11661631,019
PO File5392750845

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected