Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.44ms] Passed 4 tests
This is a short check of server-side resources used by NYX Tickets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 42.76 ▲0.41 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.60 ▲2.51 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.76 ▲0.50 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 82.52 ▼17.18 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.67 ▲3.15 |
Add New /wp-admin/post-new.php?post_type=ticket-areas | 3.38 | 43.82 |
Nyx tickets /wp-admin/edit.php?post_type=ticket-areas | 3.37 | 37.20 |
Nyx settings /wp-admin/edit.php?post_type=ticket-areas&page=nyx-settings | 3.29 | 33.82 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
NYX Tickets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,032 ▲271 | 13.95 ▼0.66 | 8.19 ▲6.47 | 43.48 ▼0.23 |
Dashboard /wp-admin | 2,363 ▲189 | 6.04 ▲0.39 | 99.67 ▼0.12 | 42.97 ▲1.22 |
Posts /wp-admin/edit.php | 2,248 ▲148 | 2.49 ▲0.47 | 34.88 ▼1.52 | 29.48 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,566 ▲38 | 23.47 ▲0.20 | 657.05 ▲39.89 | 36.82 ▼12.48 |
Media Library /wp-admin/upload.php | 1,562 ▲162 | 4.54 ▲0.35 | 96.50 ▲4.89 | 42.41 ▲3.95 |
Add New /wp-admin/post-new.php?post_type=ticket-areas | 4,113 | 3.64 | 92.92 | 34.26 |
Nyx tickets /wp-admin/edit.php?post_type=ticket-areas | 1,231 | 2.59 | 33.45 | 27.90 |
Nyx settings /wp-admin/edit.php?post_type=ticket-areas&page=nyx-settings | 947 | 2.02 | 25.28 | 24.80 |
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
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Nyx_Init::uninstall() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/nyx-tickets/views/admin-boxes.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nyx-tickets/views/full-list-view.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nyx-tickets/views/compact-list-view.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/nyx-tickets/views/admin-settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nyx-tickets/views/shortcode-content.php:1
- > PHP Fatal error
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 is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: nyx, party, tickets
nyx-tickets/nyx-ticket.php 92% from 13 tests
"NYX Tickets" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("nyx-tickets.php" instead of "nyx-ticket.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected826 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 138 | 86 | 500 |
CSS | 2 | 83 | 2 | 277 |
JavaScript | 4 | 21 | 5 | 49 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 13 | 56.52% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin