84% wp-event-calendar

Code Review | WP Event Calendar

WordPress plugin WP Event Calendar scored84%from 54 tests.

About plugin

  • Plugin page: wp-event-calendar
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Aug 19, 2015
  • Latest release: Dec 9, 2016
  • Number of updates: 45
  • Update frequency: every 10.6 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /8,200 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.62MB] [CPU: ▼5.14ms] Passed 4 tests

A check of server-side resources used by WP Event Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6941.14 ▼5.12
Dashboard /wp-admin3.97 ▲0.6348.86 ▼16.41
Posts /wp-admin/edit.php4.02 ▲0.6752.78 ▲6.05
Add New Post /wp-admin/post-new.php6.49 ▲0.6093.01 ▼4.00
Media Library /wp-admin/upload.php3.83 ▲0.6040.33 ▲4.97
Calendar /wp-admin/edit.php?post_type=event&page=event-calendar3.8440.90
Add New /wp-admin/post-new.php?post_type=event4.0357.66
Types /wp-admin/edit-tags.php?taxonomy=event-type&post_type=event3.8240.47
Tags /wp-admin/edit-tags.php?taxonomy=event-tag&post_type=event3.8239.16
Categories /wp-admin/edit-tags.php?taxonomy=event-category&post_type=event3.8243.94
All Events /wp-admin/edit.php?post_type=event3.9544.92

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

WP Event Calendar: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲11814.73 ▲0.381.94 ▲0.2237.71 ▼2.51
Dashboard /wp-admin2,245 ▲715.66 ▲0.0186.76 ▼3.0436.10 ▼1.82
Posts /wp-admin/edit.php2,150 ▲502.00 ▲0.0238.00 ▼3.0233.70 ▼0.97
Add New Post /wp-admin/post-new.php1,565 ▲3722.96 ▼0.30645.42 ▲41.9862.02 ▲4.08
Media Library /wp-admin/upload.php1,438 ▲444.24 ▲0.03100.80 ▲4.8642.03 ▲0.85
Calendar /wp-admin/edit.php?post_type=event&page=event-calendar1,8271.7726.1846.28
Add New /wp-admin/post-new.php?post_type=event3,1077.53161.3965.85
Types /wp-admin/edit-tags.php?taxonomy=event-type&post_type=event1,2992.2032.5530.74
Tags /wp-admin/edit-tags.php?taxonomy=event-tag&post_type=event1,2962.2233.6731.47
Categories /wp-admin/edit-tags.php?taxonomy=event-category&post_type=event1,3272.2033.8734.23
All Events /wp-admin/edit.php?post_type=event1,3971.9631.4629.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=event&page=event-calendar
    • > Notice in wp-content/plugins/wp-event-calendar/wp-event-calendar/includes/common/list-table-base.php+1364
    Undefined index: today

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
Looking good! No server-side errors or output on direct access of PHP files

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 97% 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 your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-event-calendar/wp-event-calendar.php Passed 13 tests

"WP Event Calendar" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
The best way to manage events in WordPress

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
There were no executable files found in this plugin3,299 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP199362,0402,772
CSS211319506
JavaScript14021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity20.17
▷ Minimum class complexity4.00
▷ Maximum class complexity63.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods86
▷ Static methods00.00%
▷ Public methods1820.93%
▷ Protected methods6879.07%
▷ Private methods00.00%
Functions63
▷ Named functions63100.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
No PNG files were detected