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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.73ms] Passed 4 tests
Server-side resources used by Ticket buttons for The Events Calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.34 ▼1.49 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.11 ▼1.16 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.02 ▲0.03 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 86.18 ▼11.29 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.71 ▼0.97 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Ticket buttons for The Events Calendar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 14.74 ▲0.36 | 1.73 ▲0.20 | 40.65 ▼0.28 |
Dashboard /wp-admin | 2,207 ▲21 | 4.90 ▼0.03 | 108.55 ▼1.07 | 38.27 ▼2.83 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.00 | 35.42 ▼1.07 | 33.63 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,522 ▲5 | 23.29 ▲5.73 | 665.84 ▼9.87 | 51.60 ▲1.20 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.30 ▲0.05 | 95.13 ▼8.60 | 41.82 ▼4.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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 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
Almost there! Just fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant PLUGIN_PATH - assumed 'PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ticket-buttons-for-the-events-calendar/includes/TBTEC.php on line 4
- > PHP Warning
include_once(): Failed opening 'PLUGIN_PATHincludes/Admin/Admin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ticket-buttons-for-the-events-calendar/includes/TBTEC.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function TBTEC\\register_post_meta() in wp-content/plugins/ticket-buttons-for-the-events-calendar/includes/TBTEC.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function TBTEC\\Admin\\add_action() in wp-content/plugins/ticket-buttons-for-the-events-calendar/includes/Admin/Admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function TBTEC\\Frontend\\add_action() in wp-content/plugins/ticket-buttons-for-the-events-calendar/includes/Frontend/Frontend.php:4
- > PHP Warning
include_once(PLUGIN_PATHincludes/Admin/Admin.php): failed to open stream: No such file or directory in wp-content/plugins/ticket-buttons-for-the-events-calendar/includes/TBTEC.php on line 4
- > PHP Warning
Use of undefined constant PLUGIN_PATH - assumed 'PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ticket-buttons-for-the-events-calendar/includes/TBTEC.php on line 5
- > PHP Warning
include_once(PLUGIN_PATHincludes/Frontend/Frontend.php): failed to open stream: No such file or directory in wp-content/plugins/ticket-buttons-for-the-events-calendar/includes/TBTEC.php on line 5
- > PHP Warning
include_once(): Failed opening 'PLUGIN_PATHincludes/Frontend/Frontend.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ticket-buttons-for-the-events-calendar/includes/TBTEC.php on line 5
- > PHP Warning
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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: button, calendar, tickets, events
ticket-buttons-for-the-events-calendar/ticket-buttons-for-the-events-calendar.php 92% from 13 tests
The entry point to "Ticket buttons for The Events Calendar" version 1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected409 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 113 | 32 | 331 |
CSS | 2 | 0 | 2 | 76 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 3 | |
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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin