Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/wocrl-leagues-and-personal-race-history/classes/wocrl-api.class.php+43
Illegal string offset 'wocrl_api_key'
Server metrics [RAM: ▼0.77MB] [CPU: ▼341.57ms] Passed 4 tests
Analyzing server-side resources used by WOCRL Leagues and Personal Race History
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 8.26 ▼40.38 |
Dashboard /wp-admin | 3.62 ▲0.21 | 7.66 ▼27.96 |
Posts /wp-admin/edit.php | 3.62 ▼0.02 | 7.28 ▼29.97 |
Add New Post /wp-admin/post-new.php | 3.62 ▼3.38 | 9.35 ▼1,267.98 |
Media Library /wp-admin/upload.php | 3.62 ▲0.33 | 8.21 ▼17.67 |
WOCRL /wp-admin/options-general.php?page=wocrl-options | 3.62 | 8.00 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 137 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wocrl_api_settings |
Browser metrics Passed 4 tests
WOCRL Leagues and Personal Race History: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,941 ▲215 | 16.22 ▲0.62 | 10.29 ▲4.54 | 2.51 ▼0.33 |
Dashboard /wp-admin | 2,897 ▲36 | 6.03 ▼0.15 | 117.12 ▼21.77 | 152.89 ▼10.41 |
Posts /wp-admin/edit.php | 2,696 ▲5 | 3.23 ▼0.01 | 62.33 ▼1.65 | 133.94 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,776 ▲3 | 16.93 ▼4.80 | 444.69 ▼78.23 | 163.05 ▼107.71 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.53 ▼0.01 | 135.18 ▼10.61 | 188.01 ▼5.48 |
WOCRL /wp-admin/options-general.php?page=wocrl-options | 1,322 | 2.42 | 53.86 | 125.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/wocrl-leagues-and-personal-race-history/classes/wocrl-api.class.php+43
Illegal string offset 'wocrl_api_key'
- Zombie WordPress options detected upon uninstall: 1 option
- wocrl_api_settings
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=wocrl-options
- > Warning in wp-content/plugins/wocrl-leagues-and-personal-race-history/classes/wocrl-api.class.php+43
Illegal string offset 'wocrl_api_key'
- > GET request to /wp-admin/options-general.php?page=wocrl-options
- > Notice in wp-content/plugins/wocrl-leagues-and-personal-race-history/classes/wocrl-api.class.php+43
Uninitialized string offset: 0
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
- 46× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wocrl-leagues-and-personal-race-history/vendor/guzzlehttp/psr7/src/NoSeekStream.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wocrl-leagues-and-personal-race-history/vendor/guzzlehttp/promises/src/Promise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wocrl-leagues-and-personal-race-history/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/wocrl-leagues-and-personal-race-history/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/wocrl-leagues-and-personal-race-history/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/wocrl-leagues-and-personal-race-history/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/wocrl-leagues-and-personal-race-history/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wocrl-leagues-and-personal-race-history/vendor/guzzlehttp/psr7/src/AppendStream.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wocrl-leagues-and-personal-race-history/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/wocrl-leagues-and-personal-race-history/vendor/guzzlehttp/guzzle/src/Client.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid version format
wocrl-leagues-and-personal-race-history/index.php 92% from 13 tests
Analyzing the main PHP file in "WOCRL Leagues and Personal Race History" version 1.2
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wocrl-leagues-and-personal-race-history.php" instead of "index.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
No dangerous file extensions were detected18,802 lines of code in 120 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 2,168 | 5,107 | 12,200 |
Markdown | 10 | 1,012 | 0 | 3,221 |
SVG | 1 | 0 | 0 | 2,671 |
JSON | 7 | 0 | 0 | 488 |
CSS | 2 | 2 | 10 | 148 |
JavaScript | 2 | 12 | 12 | 55 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 17.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 374.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 65 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 65 | 100.00% |
▷ Final classes | 9 | 13.85% |
Methods | 683 | |
▷ Static methods | 67 | 9.81% |
▷ Public methods | 564 | 82.58% |
▷ Protected methods | 4 | 0.59% |
▷ Private methods | 115 | 16.84% |
Functions | 164 | |
▷ Named functions | 64 | 39.02% |
▷ Anonymous functions | 100 | 60.98% |
Constants | 54 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 54 | 100.00% |
▷ Public constants | 54 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin