79% event-codes

Code Review | Event Codes - Shortcodes that work with other event plugins

WordPress plugin Event Codes - Shortcodes that work with other event plugins scored79%from 54 tests.

About plugin

  • Plugin page: event-codes
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2
  • WordPress version: 6.3.1
  • First release: Jun 30, 2017
  • Latest release: Feb 3, 2020
  • Number of updates: 21
  • Update frequency: every 45.6 days
  • Top authors: ajency (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,625 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.21MB] [CPU: ▼6.59ms] Passed 4 tests

Analyzing server-side resources used by Event Codes - Shortcodes that work with other event plugins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2539.67 ▼3.04
Dashboard /wp-admin3.56 ▲0.2147.52 ▼16.53
Posts /wp-admin/edit.php3.61 ▲0.2547.57 ▼0.19
Add New Post /wp-admin/post-new.php6.10 ▲0.2189.31 ▼6.60
Media Library /wp-admin/upload.php3.42 ▲0.1834.74 ▲1.87

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

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

Browser metrics Passed 4 tests

Event Codes - Shortcodes that work with other event plugins: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15013.63 ▼0.665.05 ▲3.3341.75 ▼0.03
Dashboard /wp-admin2,216 ▲254.85 ▼0.08111.70 ▲2.9240.39 ▼5.69
Posts /wp-admin/edit.php2,101 ▲92.00 ▼0.0439.79 ▲4.3736.19 ▼3.79
Add New Post /wp-admin/post-new.php1,524 ▲1023.12 ▲5.46649.49 ▲22.8852.43 ▼0.75
Media Library /wp-admin/upload.php1,398 ▲104.20 ▼0.0696.26 ▲0.0743.29 ▲1.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/event-codes/admin/partials/event-codes-admin-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Event_Codes_Datasource_Config' not found in wp-content/plugins/event-codes/datasources/configs/class-event-codes-the-events-calendar.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Event_Codes_Datasource' not found in wp-content/plugins/event-codes/datasources/sources/class-event-codes-datasource-groot.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
7 plugin tags: modern tribe, calendar, event, events, event calendar shortcode...

event-codes/event-codes.php Passed 13 tests

The main PHP script in "Event Codes - Shortcodes that work with other event plugins" version 1.0.8 is automatically included on every request by WordPress
136 characters long description:
EventCodes plugin provides a shortcode that can be used to display a list of events on home page, sidebar or any other part of the site.

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
No dangerous file extensions were detected3,403 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP334098471,804
CSS40141,559
JavaScript2166340

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.05
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes211.11%
▷ Concrete classes1688.89%
▷ Final classes00.00%
Methods131
▷ Static methods86.11%
▷ Public methods12293.13%
▷ Protected methods53.82%
▷ Private methods43.05%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants12
▷ Global constants216.67%
▷ Class constants1083.33%
▷ Public constants10100.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
7 PNG files occupy 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/ext-link.png1.12KB0.19KB▼ 82.80%
public/img/ex4.png104.20KB36.02KB▼ 65.43%
public/img/ex1.png105.07KB34.76KB▼ 66.92%
public/img/ex3.png33.26KB18.20KB▼ 45.29%
public/img/ex2.png30.80KB17.26KB▼ 43.98%