Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/volleytnt/core/form.php+41
syntax error, unexpected '&', expecting ')'
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.24ms] Passed 4 tests
Server-side resources used by VolleyTNT
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.87 ▼5.55 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.03 ▼5.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.82 ▼2.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.07 ▼4.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.66 ▲0.34 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by VolleyTNT
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.33 ▼0.25 | 1.53 ▼0.52 | 38.40 ▼10.14 |
Dashboard /wp-admin | 2,195 ▲18 | 5.50 ▼0.04 | 82.08 ▼7.40 | 39.04 ▲3.73 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 35.47 ▼0.35 | 37.32 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.05 ▲0.21 | 629.85 ▲22.24 | 51.78 ▼3.25 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.17 ▼0.00 | 100.81 ▲2.36 | 42.15 ▲2.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'VolleyTNT_AdminPage' not found in wp-content/plugins/volleytnt/admin/volleytnt_home.php:2
- > PHP Fatal error
Uncaught Error: Class 'VolleyTNT_AdminPage' not found in wp-content/plugins/volleytnt/admin/volleytnt_risultati.php:2
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/volleytnt/volleytnt.php on line 12
- > PHP Parse error
syntax error, unexpected '&', expecting ')' in wp-content/plugins/volleytnt/core/form.php on line 41
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/volleytnt/volleytnt.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'VolleyTNT_AdminPage' not found in wp-content/plugins/volleytnt/admin/volleytnt_partite.php:2
- > PHP Fatal error
Uncaught Error: Class 'VolleyTNT_AdminPage' not found in wp-content/plugins/volleytnt/admin/volleytnt_opzioni.php:2
- > PHP Fatal error
Uncaught Error: Class 'VolleyTNT_AdminPage' not found in wp-content/plugins/volleytnt/admin/volleytnt_squadre.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/volleytnt/volleytnt.php:19
- > PHP Fatal error
Uncaught Error: Class 'VolleyTNT_AdminPage' not found in wp-content/plugins/volleytnt/admin/volleytnt_gironi.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (The plugin dashboard and his widgets), #2 (The teams management for current tournement), #3 (The first phase management), #4 (The calendar creation), #5 (The results management), #6 (The final knock-out management)
volleytnt/volleytnt.php Passed 13 tests
The main PHP script in "VolleyTNT" version 0.1 is automatically included on every request by WordPress
46 characters long description:
Gestione di tornei di Beach Volley e Pallavolo
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
Success! There were no dangerous files found in this plugin3,652 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 336 | 11 | 2,605 |
CSS | 3 | 179 | 152 | 806 |
JavaScript | 8 | 27 | 3 | 241 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 41.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 4.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 3 | 2.48% |
▷ Public methods | 87 | 71.90% |
▷ Protected methods | 11 | 9.09% |
▷ Private methods | 23 | 19.01% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
28 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/jqueryui_gray/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
style/jqueryui_gray/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 3.67KB | 1.93KB | ▼ 47.53% |
style/jqueryui_gray/images/ui-bg_flat_10_000000_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
style/jqueryui_gray/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
style/jqueryui_gray/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |