74% cp-multi-view-calendar

Code Review | Calendar Event Multi View

WordPress plugin Calendar Event Multi View scored74%from 54 tests.

About plugin

  • Plugin page: cp-multi-view-cal...
  • Plugin version: 1.4.24
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.5-6.4
  • WordPress version: 6.3.1
  • First release: Jun 21, 2013
  • Latest release: Nov 4, 2023
  • Number of updates: 440
  • Update frequency: every 8.6 days
  • Top authors: codepeople (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

1,000+ active /287,554 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.28ms] Passed 4 tests

This is a short check of server-side resources used by Calendar Event Multi View
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.28 ▼9.16
Dashboard /wp-admin3.36 ▲0.0556.90 ▲6.87
Posts /wp-admin/edit.php3.47 ▲0.1144.98 ▼2.41
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.60 ▲4.17
Media Library /wp-admin/upload.php3.28 ▲0.0532.75 ▼1.73
Export/Import iCal /wp-admin/admin.php?page=cp_multiview_ical3.2431.39
Help: CSS Styles /wp-admin/admin.php?page=cp_multiview_css3.3129.92
Manage Calendars /wp-admin/admin.php?page=cp_multiview_manage3.3633.77
Help: Publishing Views /wp-admin/admin.php?page=cp_multiview_publishing3.2731.19
Help: Sample Views /wp-admin/admin.php?page=cp_multiview_samples3.3132.04
CP Multi View Calendar /wp-admin/options-general.php?page=cp_multiviewsettings3.2533.19
Help: Online Demo /wp-admin/admin.php?page=cp_multiview_demo3.2228.39
Publish Wizard /wp-admin/admin.php?page=cp_multiview_publishwizard3.3157.60
Upgrade /wp-admin/admin.php?page=cp_multiview_upgrade3.2230.44

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 179 new files
Database: 4 new tables, 7 new options
New tables
wp_dc_mv_views
wp_dc_mv_events
wp_dc_mv_calendars
wp_dc_mv_configuration
New WordPress options
widget_recent-posts
installed_calendar-event-multi-view
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Calendar Event Multi View
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲5814.25 ▲0.031.73 ▼0.0840.00 ▼3.20
Dashboard /wp-admin2,253 ▲795.62 ▼0.0182.21 ▼18.6138.19 ▼6.97
Posts /wp-admin/edit.php2,152 ▲521.94 ▼0.0136.38 ▼0.7035.09 ▼1.57
Add New Post /wp-admin/post-new.php6,926 ▲5,40026.07 ▲2.87897.89 ▲242.2344.15 ▼11.77
Media Library /wp-admin/upload.php1,449 ▲524.31 ▲0.0596.25 ▼4.9742.36 ▼2.60
Export/Import iCal /wp-admin/admin.php?page=cp_multiview_ical8432.1226.2728.53
Help: CSS Styles /wp-admin/admin.php?page=cp_multiview_css1,0491.9821.8554.00
Manage Calendars /wp-admin/admin.php?page=cp_multiview_manage1,2992.3637.7464.44
Help: Publishing Views /wp-admin/admin.php?page=cp_multiview_publishing8462.1723.7429.74
Help: Sample Views /wp-admin/admin.php?page=cp_multiview_samples9971.9824.0433.48
CP Multi View Calendar /wp-admin/options-general.php?page=cp_multiviewsettings1,2452.0023.4932.01
Help: Online Demo /wp-admin/admin.php?page=cp_multiview_demo5,1084.48114.76109.31
Publish Wizard /wp-admin/admin.php?page=cp_multiview_publishwizard1,3322.1333.6847.38
Upgrade /wp-admin/admin.php?page=cp_multiview_upgrade5,1084.59106.3862.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_dc_mv_configuration
    • wp_dc_mv_events
    • wp_dc_mv_calendars
    • wp_dc_mv_views
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • installed_calendar-event-multi-view
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cp_multiview_upgrade
    • > Javascript (severe) in unknown
    https://wordpress.dwbooster.com/TSScript/tab.js 37:11 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can take inspiration from this readme.txt

cp-multi-view-calendar/cp-multi-view-calendar.php Passed 13 tests

The entry point to "Calendar Event Multi View" version 1.4.24 is a PHP file that has certain tags in its header comment area
70 characters long description:
This plugin allows you to insert event calendars into your WP website.

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
There were no executable files found in this plugin19,992 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript391,1851,46715,119
PHP155361513,712
CSS9501761,015
HTML4490146

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity63.00
▷ Minimum class complexity16.00
▷ Maximum class complexity110.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2485.71%
▷ Protected methods00.00%
▷ Private methods414.29%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
98 PNG files occupy 0.69MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
help/imgsamples/19.png7.44KB3.50KB▼ 52.89%
help/imgstyles/dark-hive.png12.00KB8.07KB▼ 32.73%
help/imgstyles/vader.png11.98KB8.03KB▼ 32.97%
help/imgsamples/07.png7.77KB4.01KB▼ 48.40%
DC_MultiViewCal/configuration/css/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png0.25KB0.15KB▼ 38.25%