78% rd-events

Code Review | Rundiz Events

WordPress plugin Rundiz Events scored78%from 54 tests.

About plugin

  • Plugin page: rd-events
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 10, 2017
  • Latest release: Jan 24, 2023
  • Number of updates: 23
  • Update frequency: every 91.9 days
  • Top authors: okvee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /970 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.38MB] [CPU: ▲2.78ms] Passed 4 tests

This is a short check of server-side resources used by Rundiz Events
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4456.98 ▲5.68
Dashboard /wp-admin3.72 ▲0.4154.97 ▲3.59
Posts /wp-admin/edit.php3.77 ▲0.4157.84 ▲4.75
Add New Post /wp-admin/post-new.php6.24 ▲0.35104.57 ▼1.19
Media Library /wp-admin/upload.php3.58 ▲0.3540.92 ▲3.95
Settings /wp-admin/edit.php?post_type=rd_events&page=rd-events-settings3.5536.17
All Events /wp-admin/edit.php?post_type=rd_events3.6241.53
Add New /wp-admin/post-new.php?post_type=rd_events3.8055.60

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_rd_events_calendar_widget
can_compress_scripts
rundiz_events_options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Rundiz Events
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8114.26 ▼0.091.97 ▲0.1246.84 ▲4.02
Dashboard /wp-admin2,226 ▲585.61 ▲0.0284.36 ▼18.1539.74 ▼2.87
Posts /wp-admin/edit.php2,125 ▲222.04 ▲0.0540.73 ▼1.9239.23 ▲4.06
Add New Post /wp-admin/post-new.php1,549 ▲2123.19 ▲0.20628.13 ▼18.5459.78 ▲8.38
Media Library /wp-admin/upload.php1,428 ▲284.22 ▲0.01102.60 ▼6.7741.29 ▼5.51
Settings /wp-admin/edit.php?post_type=rd_events&page=rd-events-settings8562.0124.4327.48
All Events /wp-admin/edit.php?post_type=rd_events1,1501.9730.8227.05
Add New /wp-admin/post-new.php?post_type=rd_events2,8319.94311.05168.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_rd_events_calendar_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/rd-events/example/single-use-shortcode.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rd-events/App/Widgets/CalendarWidget.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'RdEvents\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rd-events/App/Controllers/Front/EnqueueStyleScript.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'RdEvents\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rd-events/App/Controllers/Admin/Activate.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'RdEvents\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rd-events/App/Controllers/Front/Events/Templates.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'RdEvents\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rd-events/App/Controllers/Admin/Uninstall.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'RdEvents\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rd-events/App/Controllers/Admin/PluginMetaAndLinks.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'RdEvents\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rd-events/App/Controllers/Admin/Events/EventsPostType.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'RdEvents\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rd-events/App/Controllers/Front/Shortcodes/AvailableShortcodes.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/rd-events/App/Views/Admin/Events/EventsMetaboxes/metaboxEventDate_v.php:49

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=rd_events
    • > Javascript (severe) in unknown
    https://maps.googleapis.com/maps-api-v3/api/js/54/10/map.js 103:685 Uncaught ReferenceError: Cannot access 'Na' before initialization
    • > GET request to /wp-admin/post-new.php?post_type=rd_events
    • > Console-api (severe) in unknown
    https://maps.googleapis.com/maps/api/js?key&libraries=places&callback=rdEventsInitMap&ver=6.3.1 153:248 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"
    • > GET request to /wp-admin/post-new.php?post_type=rd_events
    • > Javascript (severe) in unknown
    https://maps.googleapis.com/maps-api-v3/api/js/54/10/controls.js 81:501 Uncaught TypeError: Cannot read properties of null (reading 'set')

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: events, meeting, calendar, plans

rd-events/rd-events.php 92% from 13 tests

The main file in "Rundiz Events" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("/App/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected19,606 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript126272,46414,575
CSS143634723,326
PHP344417221,518
PO File1184414158
Markdown115029

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity9.29
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces10
Interfaces1
Traits1
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods55
▷ Static methods814.55%
▷ Public methods5498.18%
▷ Protected methods00.00%
▷ Private methods11.82%
Functions18
▷ Named functions633.33%
▷ Anonymous functions1266.67%
Constants2
▷ Global constants2100.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
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
assets/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
assets/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
assets/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
assets/css/jquery-ui/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%