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: ▼1.67MB] [CPU: ▼210.23ms] Passed 4 tests
Server-side resources used by Shortcodes KNVB API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.96 ▼0.75 | 7.86 ▼20.74 |
Dashboard /wp-admin | 1.98 ▼1.07 | 7.09 ▼41.34 |
Posts /wp-admin/edit.php | 1.98 ▼1.12 | 5.51 ▼44.61 |
Add New Post /wp-admin/post-new.php | 1.98 ▼3.45 | 7.28 ▼717.27 |
Media Library /wp-admin/upload.php | 1.98 ▼1.02 | 5.77 ▼37.68 |
KNVB API /wp-admin/options-general.php?page=knvb-api-menu | 1.99 | 7.98 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Shortcodes KNVB API: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,690 ▲94 | 15.97 ▲0.05 | 9.25 ▼3.85 | 57.56 ▲3.29 |
Dashboard /wp-admin | 2,977 ▲46 | 5.89 ▼0.06 | 154.27 ▼0.77 | 109.57 ▼1.31 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.72 ▲0.01 | 64.60 ▼3.90 | 90.07 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,688 ▲5 | 18.31 ▼0.39 | 408.12 ▲13.50 | 113.87 ▲2.23 |
Media Library /wp-admin/upload.php | 1,755 ▼52 | 5.02 ▼0.03 | 153.84 ▼6.44 | 127.04 ▲2.26 |
KNVB API /wp-admin/options-general.php?page=knvb-api-menu | 1,184 | 2.09 | 62.56 | 84.36 |
Uninstaller [IO: ▲0.00MB] [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
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the knvb-api-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=knvb-api-menu
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the knvb-api-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=knvb-api-menu
- > Notice in wp-content/plugins/shortcodes-knvb-api/shortcode-knvb-client.php+41
Undefined property: stdClass::$List
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=knvb-api-menu
- > Notice in wp-content/plugins/shortcodes-knvb-api/shortcode-knvb-client.php+41
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=knvb-api-menu
- > Notice in wp-content/plugins/shortcodes-knvb-api/shortcode-knvb-client.php+40
Trying to get property 'PHPSESSID' of non-object
- > GET request to /wp-admin/options-general.php?page=knvb-api-menu
- > Notice in wp-content/plugins/shortcodes-knvb-api/shortcode-knvb-client.php+41
Trying to get property 'clubnaam' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/shortcodes-knvb-api/shortcode-knvb-client.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/shortcodes-knvb-api/shortcode-knvb-client.php:3
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: dutch, voetbal, soccer, api, knvb
shortcodes-knvb-api/shortcode-knvb-api-plugin.php 85% from 13 tests
The principal PHP file in "Shortcodes KNVB API" v. 1.14.3.10 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("shortcodes-knvb-api.php" instead of "shortcode-knvb-api-plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,710 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 14 | 39 | 67 | 1,539 |
PHP | 3 | 353 | 466 | 1,092 |
JavaScript | 1 | 9 | 0 | 44 |
CSS | 2 | 3 | 0 | 35 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 45.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 9.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 17 | 65.38% |
▷ Protected methods | 9 | 34.62% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected