90% the-events-calendar-pro-alarm

Code Review | The Events Calendar PRO Alarm

WordPress plugin The Events Calendar PRO Alarm scored90%from 54 tests.

About plugin

  • Plugin page: the-events-calend...
  • Plugin version: 3.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: May 10, 2012
  • Latest release: Jul 21, 2023
  • Number of updates: 112
  • Update frequency: every 36.5 days
  • Top authors: afragen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,049 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
Install script ran successfully

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

Server-side resources used by The Events Calendar PRO Alarm
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.55 ▲5.75
Dashboard /wp-admin3.36 ▲0.0147.38 ▼13.81
Posts /wp-admin/edit.php3.47 ▲0.1244.65 ▼1.99
Add New Post /wp-admin/post-new.php5.94 ▲0.0578.50 ▼14.59
Media Library /wp-admin/upload.php3.28 ▲0.0540.16 ▲6.34

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by The Events Calendar PRO Alarm
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.18 ▼0.181.73 ▼0.0044.74 ▲3.26
Dashboard /wp-admin2,215 ▲445.63 ▲0.0194.46 ▼18.1943.47 ▼19.49
Posts /wp-admin/edit.php2,118 ▲182.00 ▲0.0134.92 ▼5.1734.74 ▼5.11
Add New Post /wp-admin/post-new.php1,538 ▲1023.07 ▼0.11624.72 ▼61.6859.06 ▼8.12
Media Library /wp-admin/upload.php1,417 ▲204.28 ▲0.07100.06 ▼0.9044.17 ▼3.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: tribe, modern tribe, ical feed, events

the-events-calendar-pro-alarm/the-events-calendar-pro-alarm.php 92% from 13 tests

"The Events Calendar PRO Alarm" version 3.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 405 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin423 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1095179422
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity12.60
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods31
▷ Static methods39.68%
▷ Public methods2993.55%
▷ Protected methods13.23%
▷ Private methods13.23%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/screenshot-1.png105.52KB34.80KB▼ 67.02%