77% events-search-addon-for-the-events-calendar

Code Review | Events Search For The Events Calendar

WordPress plugin Events Search For The Events Calendar scored77%from 54 tests.

About plugin

  • Plugin page: events-search-add...
  • Plugin version: 1.2.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2019
  • Latest release: Sep 19, 2023
  • Number of updates: 38
  • Update frequency: every 44.5 days
  • Top authors: Narinder singh (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

3,000+ active /41,651 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.16MB] [CPU: ▼5.22ms] Passed 4 tests

This is a short check of server-side resources used by Events Search For The Events Calendar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.87 ▼0.12
Dashboard /wp-admin3.48 ▲0.1748.81 ▲2.57
Posts /wp-admin/edit.php3.59 ▲0.2342.82 ▼10.40
Add New Post /wp-admin/post-new.php6.08 ▲0.1977.67 ▼12.37
Media Library /wp-admin/upload.php3.40 ▲0.1735.33 ▲2.02

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
ecsa-v
widget_recent-posts
ecsa-installDate
theysaidso_admin_options
can_compress_scripts
ecsa-type
widget_theysaidso_widget
db_upgraded
ecsa-ratingDiv
...

Browser metrics Passed 4 tests

An overview of browser requirements for Events Search For The Events Calendar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.26 ▲0.071.69 ▲0.0646.18 ▲1.46
Dashboard /wp-admin2,224 ▲475.61 ▼0.0693.96 ▲5.6144.42 ▲2.77
Posts /wp-admin/edit.php2,126 ▲262.04 ▲0.0535.08 ▼8.1034.71 ▼4.29
Add New Post /wp-admin/post-new.php1,559 ▲3323.21 ▼0.63646.60 ▼19.1550.51 ▼5.73
Media Library /wp-admin/upload.php1,426 ▲294.24 ▲0.0896.27 ▼11.2343.34 ▼3.46

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 11 options
    • ecsa-v
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_eventscalendarsearchaddonwidget
    • ecsa-installDate
    • ecsa-ratingDiv
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/events-search-addon-for-the-events-calendar/admin/events-addon-page/includes/cool_plugins_downloader.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-search-addon-for-the-events-calendar/includes/ecsa-widget.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 79% 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
10 plugin tags: search, the events calendar addon, calendar addon, events search, the events calendar...

events-search-addon-for-the-events-calendar/events-calendar-search-addon.php 54% from 13 tests

The main PHP script in "Events Search For The Events Calendar" version 1.2.8 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.5")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 262 characters long)
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("events-search-addon-for-the-events-calendar.php" instead of "events-calendar-search-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,552 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP9199179893
CSS53516469
JavaScript6285182
SVG8008

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity18.20
▷ Minimum class complexity3.00
▷ Maximum class complexity53.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods30
▷ Static methods413.33%
▷ Public methods2996.67%
▷ Protected methods00.00%
▷ Private methods13.33%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.18MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/events-addon-page/assets/coolplugins-logo.png8.40KB3.14KB▼ 62.61%
assets/images/logo.png10.59KB3.76KB▼ 64.51%
admin/events-addon-page/assets/images/events-calendar-pro.png11.89KB12.61KB0.00%
assets/images/search_icon.png1.37KB0.81KB▼ 40.53%
assets/images/event-template-bg.png146.91KB156.24KB0.00%