72% super-simple-event-calendar

Code Review | Super Simple Event Calendar

WordPress plugin Super Simple Event Calendar scored72%from 54 tests.

About plugin

  • Plugin page: super-simple-even...
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Aug 23, 2018
  • Latest release: Oct 27, 2023
  • Number of updates: 60
  • Update frequency: every 31.5 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /19,891 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.11ms] Passed 4 tests

Server-side resources used by Super Simple Event Calendar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1338.02 ▼0.80
Dashboard /wp-admin3.47 ▲0.1646.08 ▼0.87
Posts /wp-admin/edit.php3.58 ▲0.2248.55 ▼6.68
Add New Post /wp-admin/post-new.php6.05 ▲0.1680.39 ▼12.10
Media Library /wp-admin/upload.php3.39 ▲0.1637.41 ▲2.39
New Event /wp-admin/post-new.php?post_type=ssec_event3.5150.55
Season /wp-admin/edit-tags.php?taxonomy=ssec_season&post_type=ssec_event3.3832.96
Events /wp-admin/edit.php?post_type=ssec_event3.4335.79

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_ssec_widget_calendar

Browser metrics Passed 4 tests

Checking browser requirements for Super Simple Event Calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.33 ▼0.401.79 ▲0.0142.73 ▲3.08
Dashboard /wp-admin2,230 ▲565.57 ▼0.0682.78 ▼6.1239.64 ▲0.14
Posts /wp-admin/edit.php2,135 ▲322.02 ▲0.0434.47 ▼10.8640.74 ▼1.99
Add New Post /wp-admin/post-new.php1,555 ▲2823.56 ▲2.35677.96 ▲74.8258.56 ▲9.45
Media Library /wp-admin/upload.php1,435 ▲414.19 ▲0.0194.11 ▼3.8443.31 ▲1.21
New Event /wp-admin/post-new.php?post_type=ssec_event2,4837.65173.8267.24
Season /wp-admin/edit-tags.php?taxonomy=ssec_season&post_type=ssec_event1,3062.1126.7831.30
Quick Edit /wp-admin/ssec-quick-edit.php260.420.0711.02
Events /wp-admin/edit.php?post_type=ssec_event1,0961.9829.9829.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_ssec_widget_calendar
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 7× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/super-simple-event-calendar/ssec-hooks.php
    • > /wp-content/plugins/super-simple-event-calendar/ssec-admin-quick-edit.php
    • > /wp-content/plugins/super-simple-event-calendar/ssec-posttypes.php
    • > /wp-content/plugins/super-simple-event-calendar/ssec-meta-box.php
    • > /wp-content/plugins/super-simple-event-calendar/ssec-shortcode.php
    • > /wp-content/plugins/super-simple-event-calendar/ssec-taxonomy-content-filter.php
    • > /wp-content/plugins/super-simple-event-calendar/ssec-widget-calendar.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/super-simple-event-calendar/super-simple-event-calendar.php:45

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/ssec-quick-edit.php
    • > Network (severe)
    wp-admin/ssec-quick-edit.php - Failed to load resource: the server responded with a status of 404 (Not Found)

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
4 plugin tags: calendar, simple event calendar, simple calendar, event calendar

super-simple-event-calendar/super-simple-event-calendar.php 92% from 13 tests

"Super Simple Event Calendar" version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/lang/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected799 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8190177799

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin