Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.61ms] Passed 4 tests
An overview of server-side resources used by Event Calendar / Scheduler
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.55 ▼10.64 |
Dashboard /wp-admin | 3.32 ▼0.03 | 50.54 ▼13.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.65 ▲0.49 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.71 ▼7.25 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.65 ▲1.63 |
Server storage [IO: ▲1.96MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/event-calendar-scheduler/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 272 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_events_rec |
New WordPress options |
---|
can_compress_scripts |
scheduler_num |
scheduler_php |
db_upgraded |
theysaidso_admin_options |
scheduler_xml |
scheduler_stable_config |
scheduler_xml_version |
widget_recent-posts |
scheduler_php_version |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Event Calendar / Scheduler
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.20 ▼1.04 | 1.78 ▼0.42 | 43.33 ▼0.04 |
Dashboard /wp-admin | 2,221 ▲18 | 5.86 ▲0.97 | 100.96 ▼9.83 | 40.26 ▼0.95 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.04 | 39.77 ▲2.65 | 35.68 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 23.21 ▼0.28 | 666.00 ▼25.29 | 64.87 ▲8.10 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.27 ▲0.04 | 99.42 ▼9.22 | 42.80 ▼4.09 |
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
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_events_rec
- The uninstall procedure has failed, leaving 14 options in the database
- scheduler_xml
- scheduler_xml_version
- widget_recent-comments
- scheduler_num
- can_compress_scripts
- scheduler_version
- widget_recent-posts
- scheduler_url
- theysaidso_admin_options
- scheduler_php_version
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/event-calendar-scheduler/mce_scheduler/scheduler_ajax.php
- > /wp-content/plugins/event-calendar-scheduler/wpmu_options.php
- > /wp-content/plugins/event-calendar-scheduler/codebase/skin_builder/skin.php
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > 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 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_locale() in wp-content/plugins/event-calendar-scheduler/admin.php:35
- > 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 9
- > 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 11
- > 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 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 Fatal error
Uncaught Error: Class 'DataItem' not found in wp-content/plugins/event-calendar-scheduler/codebase/connector/update.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #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)
- Tags: There are too many tags (21 tag instead of maximum 10)
event-calendar-scheduler/scheduler.php 92% from 13 tests
"Event Calendar / Scheduler" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same 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
Everything looks great! No dangerous 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
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
64 compressed PNG files occupy 0.52MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
codebase/imgs/sky_blue_sel2.png | 0.15KB | 0.41KB | 0.00% |
codebase/imgs/top-separator.png | 0.20KB | 0.23KB | 0.00% |
codebase/imgs/controlls5.png | 2.77KB | 1.87KB | ▼ 32.35% |
codebase/imgs/icon.png | 0.22KB | 0.21KB | ▼ 7.83% |
codebase/imgs/lightbox.png | 0.20KB | 0.18KB | ▼ 8.70% |