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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.25ms] Passed 4 tests
An overview of server-side resources used by Calendar-To-Events
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.91 ▲4.21 |
Dashboard /wp-admin | 3.35 ▲0.00 | 46.94 ▼11.65 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.38 ▲2.20 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 86.22 ▲4.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.81 ▲6.31 |
Календари /wp-admin/edit-tags.php?taxonomy=cal2eve_calendars&post_type=cal2eve_events | 3.26 | 38.15 |
События /wp-admin/edit.php?post_type=cal2eve_events | 3.31 | 37.23 |
Страны /wp-admin/edit-tags.php?taxonomy=cal2eve_cities&post_type=cal2eve_events | 3.26 | 31.93 |
Добавить событие /wp-admin/post-new.php?post_type=cal2eve_events | 3.32 | 45.28 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Calendar-To-Events: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲190 | 13.51 ▼0.87 | 9.13 ▲7.42 | 41.37 ▲1.77 |
Dashboard /wp-admin | 2,246 ▲66 | 5.56 ▼0.00 | 96.19 ▲6.07 | 43.38 ▼1.45 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.01 ▼0.00 | 37.03 ▲2.01 | 33.69 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.14 ▲0.22 | 699.20 ▲30.70 | 67.65 ▲9.81 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.15 ▼0.10 | 130.48 ▲25.20 | 55.26 ▲9.79 |
Календари /wp-admin/edit-tags.php?taxonomy=cal2eve_calendars&post_type=cal2eve_events | 1,325 | 2.28 | 28.73 | 32.31 |
События /wp-admin/edit.php?post_type=cal2eve_events | 1,290 | 1.95 | 34.62 | 32.04 |
Страны /wp-admin/edit-tags.php?taxonomy=cal2eve_cities&post_type=cal2eve_events | 1,331 | 2.28 | 30.77 | 35.00 |
Добавить событие /wp-admin/post-new.php?post_type=cal2eve_events | 1,944 | 2.61 | 52.58 | 51.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/calendar-to-events/cal2eve.php
- 23× 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 get_header() in wp-content/plugins/calendar-to-events/views/taxonomy/cal2eve-cities.php:1
- > PHP Fatal error
require_once(): Failed opening required 'CAL_TO_EVE_PATH/models/events.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendar-to-events/controllers/plugin_management/activate.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'CAL_TO_EVE_PATH/models/custom_post_type.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendar-to-events/controllers/register_post_type.php on line 2
- > PHP Warning
Use of undefined constant CAL_TO_EVE_PATH - assumed 'CAL_TO_EVE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/calendar-to-events/controllers/plugin_management/deactivate.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/calendar-to-events/views/cal2eve-events.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/calendar-to-events/controllers/shortcode.php:2
- > PHP Fatal error
require_once(): Failed opening required 'CAL_TO_EVE_PATH/models/events.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendar-to-events/controllers/plugin_management/deactivate.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/calendar-to-events/views/taxonomy/cal2eve-calendars.php:1
- > PHP Warning
require_once(CAL_TO_EVE_PATH/models/events.php): failed to open stream: No such file or directory in wp-content/plugins/calendar-to-events/controllers/plugin_management/deactivate.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'CAL_TO_EVE_PATH/models/events.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendar-to-events/controllers/plugin_management/uninstall.php on line 2
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: cal2eve, calendar, calendar-to-events, organizer, calendars...
calendar-to-events/cal2eve.php 85% from 13 tests
The main file in "Calendar-To-Events" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.0")
- Main file name: Name the main plugin file the same as the plugin slug ("calendar-to-events.php" instead of "cal2eve.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,299 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 40 | 56 | 587 |
JavaScript | 1 | 50 | 51 | 369 |
CSS | 2 | 37 | 22 | 343 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin