Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5316
get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
Server metrics [RAM: ▼0.01MB] [CPU: ▼300.81ms] Passed 4 tests
Server-side resources used by Event Calendar / Scheduler
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 52.98 ▲2.62 |
Dashboard /wp-admin | 3.42 ▲0.01 | 34.07 ▲2.23 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.78 ▲0.52 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 89.83 ▼1,204.73 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 24.61 ▼1.27 |
Server storage [IO: ▲1.96MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 272 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_events_rec |
New WordPress options |
---|
scheduler_num |
scheduler_xml_version |
scheduler_php_version |
scheduler_php |
scheduler_xml |
scheduler_stable_config |
scheduler_url |
scheduler_version |
Browser metrics Passed 4 tests
Event Calendar / Scheduler: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.36 ▼0.62 | 5.56 ▼0.30 | 2.31 ▼0.44 |
Dashboard /wp-admin | 2,895 ▲34 | 6.11 ▼0.19 | 119.03 ▼15.70 | 158.49 ▼1.63 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.25 ▲0.00 | 62.65 ▲2.12 | 140.69 ▲5.74 |
Add New Post /wp-admin/post-new.php | 1,752 ▼8 | 21.69 ▼0.91 | 429.39 ▼1.68 | 157.22 ▲1.84 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▲0.04 | 142.09 ▲2.56 | 188.71 ▲1.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_events_rec
- This plugin did not uninstall successfully, leaving 8 options in the database
- scheduler_num
- scheduler_xml_version
- scheduler_php
- scheduler_url
- scheduler_php_version
- scheduler_stable_config
- scheduler_xml
- scheduler_version
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 everything seems fine, this is not 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/event-calendar-scheduler/codebase/skin_builder/skin.php
- > /wp-content/plugins/event-calendar-scheduler/mce_scheduler/scheduler_ajax.php
- > /wp-content/plugins/event-calendar-scheduler/wpmu_options.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DataItem' not found in wp-content/plugins/event-calendar-scheduler/codebase/connector/update.php:8
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/event-calendar-scheduler/scheduler.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/event-calendar-scheduler/settings_export.php:50
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/event-calendar-scheduler/admin.php on line 10
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/event-calendar-scheduler/admin.php on line 8
- > PHP Warning
require(ABSPATHWPINC/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/event-calendar-scheduler/scheduler.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/event-calendar-scheduler/codebase/dhtmlxSchedulerConfigurator.php:38
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/event-calendar-scheduler/scheduler.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/event-calendar-scheduler/codebase/dhtmlxSchedulerConfigurator.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/event-calendar-scheduler/admin.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Events calendar within a blog page), #2 (A new event window), #3 (Admin panel), #4 (Week View), #5 (Map View (integration with Google Map)), #6 (Week Agenda View), #7 (Timeline View)
event-calendar-scheduler/scheduler.php 92% from 13 tests
The main PHP file in "Event Calendar / Scheduler" ver. 3.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("event-calendar-scheduler.php" instead of "scheduler.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
There were no executable files found in this plugin10,292 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 942 | 1,297 | 5,128 |
JavaScript | 84 | 254 | 198 | 2,282 |
HTML | 15 | 170 | 1 | 1,876 |
CSS | 7 | 218 | 1 | 892 |
XML | 2 | 6 | 0 | 114 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 17.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 201.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 2 | 5.88% |
▷ Concrete classes | 32 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 354 | |
▷ Static methods | 8 | 2.26% |
▷ Public methods | 265 | 74.86% |
▷ Protected methods | 42 | 11.86% |
▷ Private methods | 47 | 13.28% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
64 PNG files occupy 0.52MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
codebase/imgs_glossy/move.png | 0.14KB | 0.14KB | ▼ 2.07% |
codebase/imgs_glossy/databg_now.png | 0.09KB | 0.09KB | 0.00% |
screenshot-4.png | 33.41KB | 9.78KB | ▼ 70.72% |
codebase/imgs/dhxgrid_dhx_skyblue/asteriks.png | 0.23KB | 0.13KB | ▼ 40.69% |
screenshot-7.png | 23.66KB | 7.78KB | ▼ 67.12% |