94% the-events-calendar-outlook-import-fix

Code Review | The Events Calendar Outlook Import Fix

WordPress plugin The Events Calendar Outlook Import Fix scored 94% from 54 tests.

About plugin

  • Plugin page: the-events-calend...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.8
  • WordPress version: 5.8.1
  • First release: Aug 2, 2014
  • Latest release: Jul 7, 2021
  • Number of updates: 40
  • Update frequency: every 63.3 days
  • Top authors: afragen (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active / 8,026 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼136.22ms] Passed 4 tests

An overview of server-side resources used by The Events Calendar Outlook Import Fix
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.58 ▲13.68
Dashboard /wp-admin3.07 ▲0.0143.78 ▼1.28
Posts /wp-admin/edit.php3.12 ▲0.0144.39 ▲2.03
Add New Post /wp-admin/post-new.php5.43 ▼0.0092.34 ▼540.29
Media Library /wp-admin/upload.php3.01 ▼0.0032.85 ▼5.33

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for The Events Calendar Outlook Import Fix
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10816.20 ▲0.2410.59 ▲2.2950.49 ▼2.92
Dashboard /wp-admin2,989 ▲555.99 ▼0.02135.03 ▼30.30118.56 ▲16.79
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0265.70 ▼1.1099.90 ▲15.33
Add New Post /wp-admin/post-new.php1,683 ▲1118.76 ▼0.11379.32 ▼6.16113.37 ▲3.38
Media Library /wp-admin/upload.php1,748 ▼625.00 ▼0.02151.77 ▲5.57122.92 ▼2.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/the-events-calendar-outlook-import-fix/the-events-calendar-outlook-import-fix.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
5 plugin tags: modern tribe, outlook, icalendar, events, ical feed

the-events-calendar-outlook-import-fix/the-events-calendar-outlook-import-fix.php 92% from 13 tests

The principal PHP file in "The Events Calendar Outlook Import Fix" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected48 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown217036
PHP131412

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
2 PNG files occupy 0.35MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/banner-772x250.png83.22KB27.89KB▼ 66.48%
.wordpress-org/banner-1544x500.png275.90KB79.84KB▼ 71.06%