Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wpspx/config.php+11
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.86MB] [CPU: ▼192.51ms] Passed 4 tests
An overview of server-side resources used by WPSPX
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼0.95 | 6.39 ▼22.03 |
Dashboard /wp-admin | 1.79 ▼1.26 | 6.47 ▼39.39 |
Posts /wp-admin/edit.php | 1.79 ▼1.31 | 5.56 ▼32.91 |
Add New Post /wp-admin/post-new.php | 1.79 ▼3.64 | 5.44 ▼660.11 |
Media Library /wp-admin/upload.php | 1.79 ▼1.22 | 6.02 ▼37.62 |
WPSPX /wp-admin/admin.php?page=wpspx | 1.79 | 5.99 |
Data Sync /wp-admin/admin.php?page=wpspx-shows | 1.79 | 5.51 |
Shows /wp-admin/edit.php?post_type=shows | 1.79 | 6.80 |
Add New /wp-admin/post-new.php?post_type=shows | 1.79 | 6.15 |
Support /wp-admin/admin.php?page=wpspx-support | 1.79 | 6.24 |
Cache /wp-admin/admin.php?page=wpspx-cache | 1.79 | 6.86 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/wpspx/" and "wp-content/uploads/"
- (new file) wp-content/wpspx-cache/.empty
Filesystem: 66 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WPSPX
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,937 ▲365 | 16.96 ▲1.51 | 16.28 ▲6.00 | 47.61 ▲1.95 |
Dashboard /wp-admin | 3,062 ▲131 | 5.94 ▲0.02 | 133.50 ▼18.43 | 126.60 ▲21.49 |
Posts /wp-admin/edit.php | 2,849 ▲110 | 2.71 ▲0.02 | 68.38 ▲2.02 | 89.70 ▲7.20 |
Add New Post /wp-admin/post-new.php | 1,955 ▲455 | 24.51 ▲5.80 | 374.84 ▲13.93 | 105.73 ▼3.55 |
Media Library /wp-admin/upload.php | 1,850 ▲40 | 4.99 ▼0.04 | 128.07 ▼22.28 | 145.99 ▲33.14 |
WPSPX /wp-admin/admin.php?page=wpspx | 1,252 | 2.05 | 51.79 | 88.41 |
Data Sync /wp-admin/admin.php?page=wpspx-shows | 1,345 | 2.09 | 54.17 | 84.21 |
Shows /wp-admin/edit.php?post_type=shows | 1,588 | 2.64 | 57.47 | 75.32 |
Add New /wp-admin/post-new.php?post_type=shows | 6,138 | 19.21 | 443.33 | 123.98 |
Support /wp-admin/admin.php?page=wpspx-support | 1,657 | 2.06 | 55.61 | 92.55 |
Cache /wp-admin/admin.php?page=wpspx-cache | 1,279 | 2.10 | 59.78 | 87.76 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wpspx/config.php+11
Trying to access array offset on value of type bool
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 38 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpspx-cache
- > Notice in wp-content/plugins/wpspx/config.php+24
Trying to access array offset on value of type bool
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpspx-support
- > Warning in wp-content/plugins/wpspx/framework/spektrix/spektrix.class.php+140
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=wpspx-support
- > Notice in wp-content/plugins/wpspx/lib/helpers/options-page.php+541
Undefined index: HTTPS
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 43× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wpspx/lib/templates/wpspx-my-account.php
- > /wp-content/plugins/wpspx/lib/helpers/cache/tag-groups.php
- > /wp-content/plugins/wpspx/lib/helpers/cache/statements.php
- > /wp-content/plugins/wpspx/activate.php
- > /wp-content/plugins/wpspx/lib/helpers/number_to_words.php
- > /wp-content/plugins/wpspx/lib/helpers/post-assoc.php
- > /wp-content/plugins/wpspx/framework/spektrix/cachedfile.class.php
- > /wp-content/plugins/wpspx/lib/templates/wpspx-donate.php
- > /wp-content/plugins/wpspx/lib/templates/wpspx-basket.php
- > /wp-content/plugins/wpspx/lib/templates/single-shows.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPSPX_Spektrix' not found in wp-content/plugins/wpspx/lib/helpers/cache/funds.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wpspx-support
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=shows - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: booking, wpspx, api, tickets, theatre...
wpspx/wp-spektrix.php 85% from 13 tests
The principal PHP file in "WPSPX" v. 1.0.2 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpspx.php" instead of "wp-spektrix.php")
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 detected2,515 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 602 | 936 | 2,318 |
Sass | 7 | 67 | 34 | 188 |
SVG | 4 | 0 | 0 | 5 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 3.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 8 | 14.81% |
▷ Public methods | 47 | 87.04% |
▷ Protected methods | 3 | 5.56% |
▷ Private methods | 4 | 7.41% |
Functions | 67 | |
▷ Named functions | 67 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin