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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.87 ▼0.12 |
Dashboard /wp-admin | 3.48 ▲0.17 | 48.81 ▲2.57 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 42.82 ▼10.40 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 77.67 ▼12.37 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.26 ▲0.07 | 1.69 ▲0.06 | 46.18 ▲1.46 |
Dashboard /wp-admin | 2,224 ▲47 | 5.61 ▼0.06 | 93.96 ▲5.61 | 44.42 ▲2.77 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.04 ▲0.05 | 35.08 ▼8.10 | 34.71 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.21 ▼0.63 | 646.60 ▼19.15 | 50.51 ▼5.73 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.24 ▲0.08 | 96.27 ▼11.23 | 43.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 199 | 179 | 893 |
CSS | 5 | 35 | 16 | 469 |
JavaScript | 6 | 28 | 5 | 182 |
SVG | 8 | 0 | 0 | 8 |
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 code | 0.32 |
Average class complexity | 18.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 30 | |
▷ Static methods | 4 | 13.33% |
▷ Public methods | 29 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.33% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/events-addon-page/assets/coolplugins-logo.png | 8.40KB | 3.14KB | ▼ 62.61% |
assets/images/logo.png | 10.59KB | 3.76KB | ▼ 64.51% |
admin/events-addon-page/assets/images/events-calendar-pro.png | 11.89KB | 12.61KB | 0.00% |
assets/images/search_icon.png | 1.37KB | 0.81KB | ▼ 40.53% |
assets/images/event-template-bg.png | 146.91KB | 156.24KB | 0.00% |