Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.20ms] Passed 4 tests
Analyzing server-side resources used by Event Scheduler
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.84 ▲2.97 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.60 ▼5.50 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.12 ▼0.78 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 95.87 ▲4.76 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.61 ▲2.50 |
Event Scheduler /wp-admin/options-general.php?page=event-scheduler | 3.29 | 37.69 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 41 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_event_scheduler_holiday |
wp_event_scheduler_event |
wp_event_scheduler_participant |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Event Scheduler: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.62 ▼1.06 | 8.77 ▲6.83 | 37.55 ▼11.78 |
Dashboard /wp-admin | 2,214 ▲26 | 5.86 ▲0.94 | 107.79 ▼8.24 | 40.01 ▼4.26 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.00 ▲0.02 | 40.18 ▼1.65 | 35.42 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,530 ▼7 | 18.54 ▼4.72 | 630.15 ▲23.99 | 57.07 ▲9.06 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.24 ▲0.04 | 95.46 ▼1.57 | 42.62 ▲0.12 |
Event Scheduler /wp-admin/options-general.php?page=event-scheduler | 957 | 2.03 | 24.69 | 39.02 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=event-scheduler
- > Notice in wp-content/plugins/event-scheduler/admin/partials/event-scheduler-admin-display.php+36
Trying to access array offset on value of type bool
SRP 50% 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
The following issues need your attention
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-event-statistics-display.php:16
- > PHP Fatal error
Uncaught Error: Class 'EsDb' not found in wp-content/plugins/event-scheduler/includes/EsParticipantDb.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-member-list-display.php:16
- > PHP Fatal error
Uncaught Error: Class 'EsDb' not found in wp-content/plugins/event-scheduler/includes/EsEventDb.php:3
- > PHP Fatal error
Uncaught Error: Class 'EsDb' not found in wp-content/plugins/event-scheduler/includes/EsHolidayDb.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/event-scheduler/admin/partials/event-scheduler-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-holiday-admin-display.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-event-list-admin-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-event-list-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-holiday-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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 need to be fixed:
- Requires php: Version format is invalid
- Requires at least: Version format is invalid
event-scheduler/event-scheduler.php Passed 13 tests
The main PHP file in "Event Scheduler" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Event scheduler can be used for planning of recurring events.
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
No dangerous file extensions were detected1,958 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 533 | 1,225 | 1,759 |
PO File | 1 | 62 | 75 | 152 |
Markdown | 1 | 18 | 0 | 28 |
XML | 1 | 0 | 0 | 9 |
JavaScript | 2 | 4 | 54 | 6 |
SVG | 4 | 0 | 0 | 4 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 2 | 2.06% |
▷ Public methods | 92 | 94.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.15% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin