Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.80ms] Passed 4 tests
This is a short check of server-side resources used by Q Events light
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 42.62 ▼3.37 |
Dashboard /wp-admin | 3.50 ▲0.20 | 56.89 ▼1.78 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 54.46 ▲3.18 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 87.90 ▼4.37 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 37.42 ▲2.34 |
Events /wp-admin/admin.php?page=q_events | 3.41 | 39.27 |
Upgrade to PRO /wp-admin/admin.php?page=q_upgrade | 3.35 | 40.42 |
Server storage [IO: ▲3.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 60 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_q_events_light |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Q Events light
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,085 ▲324 | 15.15 ▲0.80 | 5.17 ▲3.28 | 40.00 ▲1.27 |
Dashboard /wp-admin | 2,381 ▲201 | 6.25 ▲0.61 | 110.99 ▲9.52 | 41.61 ▲1.51 |
Posts /wp-admin/edit.php | 2,316 ▲216 | 3.47 ▲1.46 | 50.65 ▲10.35 | 31.84 ▼5.12 |
Add New Post /wp-admin/post-new.php | 1,570 ▲33 | 22.89 ▲4.70 | 659.32 ▲29.93 | 37.68 ▼27.46 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.31 ▲0.14 | 82.52 ▼22.52 | 49.27 ▲3.05 |
Events /wp-admin/admin.php?page=q_events | 1,394 | 3.56 | 52.94 | 278.57 |
Upgrade to PRO /wp-admin/admin.php?page=q_upgrade | 1,484 | 3.06 | 43.16 | 75.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_q_events_light
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/q-events-light/public/partials/events-public-display.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/q-events-light/admin/class-events-admin.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/q-events-light/admin/partials/events-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/q-events-light/public/class-events-public.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/q-events-light/admin/partials/events-admin-upgrade.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=q_upgrade
- > Network (severe)
wp-content/themes/twentytwentyone/css/events_admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not 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
Please fix the following attributes:
- Donate link: Invalid URI ("qanuk.io")
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in q-events-light/assets to your readme.txt
q-events-light/events.php 92% from 13 tests
"Q Events light" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("q-events-light.php" instead of "events.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
No dangerous file extensions were detected17,465 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 0 | 16 | 9,383 |
CSS | 7 | 1,728 | 173 | 6,649 |
PHP | 14 | 215 | 573 | 954 |
JavaScript | 3 | 133 | 96 | 479 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 27 | 79.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 20.59% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
9 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/jquery-ui/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
admin/css/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |
admin/css/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
admin/img/close.png | 0.63KB | 0.65KB | 0.00% |
admin/css/timepicker/mtimepicker.png | 0.64KB | 0.63KB | ▼ 1.52% |