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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.20ms] Passed 4 tests
An overview of server-side resources used by KNVB Api plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 37.96 ▼8.33 |
Dashboard /wp-admin | 3.48 ▲0.18 | 44.26 ▼5.96 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 44.41 ▲0.42 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 92.28 ▲1.07 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.38 ▲1.96 |
KNVB API /wp-admin/options-general.php?page=knvb-api-menu | 3.35 | 307.77 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for KNVB Api plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.04 | 1.84 ▲0.14 | 38.14 ▼12.15 |
Dashboard /wp-admin | 2,199 ▲25 | 5.62 ▼0.05 | 86.45 ▼11.17 | 38.73 ▼10.21 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.95 ▲0.00 | 38.19 ▲0.28 | 33.66 ▲2.95 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.27 ▼4.96 | 669.37 ▲45.60 | 56.57 ▲4.19 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.25 ▲0.09 | 93.73 ▲0.14 | 45.07 ▲3.57 |
KNVB API /wp-admin/options-general.php?page=knvb-api-menu | 825 | 2.03 | 24.09 | 25.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=knvb-api-menu
- > Notice in wp-content/plugins/knvb-api/knvb-client.php+38
Undefined property: stdClass::$List
- > GET request to /wp-admin/options-general.php?page=knvb-api-menu
- > Notice in wp-content/plugins/knvb-api/knvb-client.php+38
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/knvb-api/knvb-client.php+38
Trying to get property 'PHPSESSID' of non-object
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/knvb-api/knvb-api-plugin.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: api, knvb, voetbal, dutch, soccer
knvb-api/knvb-api-plugin.php 92% from 13 tests
The entry point to "KNVB Api plugin" version 1.13 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("knvb-api.php" instead of "knvb-api-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,092 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 338 | 375 | 714 |
HTML | 7 | 0 | 0 | 221 |
Markdown | 1 | 39 | 0 | 99 |
JavaScript | 1 | 9 | 0 | 44 |
CSS | 1 | 3 | 0 | 14 |
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.40 |
Average class complexity | 25.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 16 | 64.00% |
▷ Protected methods | 9 | 36.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
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
PNG images were not found in this plugin