Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲54.75ms] Passed 4 tests
An overview of server-side resources used by Volunteer Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.20 | 101.04 ▲63.37 |
Dashboard /wp-admin | 3.36 ▲0.05 | 103.21 ▲54.60 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 111.10 ▲58.09 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 146.70 ▲42.95 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 292.12 ▲255.84 |
List /wp-admin/admin.php?page=vf-menu-handle | 3.24 | 90.14 |
Settings /wp-admin/admin.php?page=vf-menu-settings | 3.24 | 87.67 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 82 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_volunteerinfo |
New WordPress options |
---|
theysaidso_admin_options |
vf_db_version |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Volunteer Form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲70 | 13.26 ▼1.16 | 1.56 ▼0.20 | 38.38 ▲0.84 |
Dashboard /wp-admin | 2,233 ▲45 | 4.85 ▼1.03 | 103.75 ▼7.70 | 38.64 ▼6.22 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.01 ▲0.01 | 39.78 ▼2.26 | 37.07 ▲1.30 |
Add New Post /wp-admin/post-new.php | 1,535 ▼7 | 21.46 ▲3.33 | 672.08 ▲77.29 | 51.02 ▼0.05 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.19 ▲0.03 | 101.61 ▲3.50 | 46.02 ▲2.95 |
List /wp-admin/admin.php?page=vf-menu-handle | 813 | 2.05 | 24.00 | 32.98 |
Settings /wp-admin/admin.php?page=vf-menu-settings | 825 | 2.06 | 26.18 | 25.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_volunteerinfo
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- vf_db_version
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vf-menu-settings
- > Notice in wp-content/plugins/volunteer-form/templates/settings.php+18
Trying to access array offset on value of type bool
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/volunteer-form/templates/list.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/volunteer-form/templates/settings.php:4
- > PHP Warning
Use of undefined constant VF_EXPORT_URL - assumed 'VF_EXPORT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/volunteer-form/templates/list.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/volunteer-form/volunteerform.php:294
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/volunteer-form/templates/form.php:3
- > PHP Notice
Undefined variable: volunteers in wp-content/plugins/volunteer-form/templates/list.php on line 17
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/volunteer-form/templates/list.php on line 17
- > 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/volunteer-form/volunteerform.php on line 32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: volunteer, form
volunteer-form/volunteerform.php 92% from 13 tests
Analyzing the main PHP file in "Volunteer Form" version 0.1.6
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("volunteer-form.php" instead of "volunteerform.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected7,625 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
LESS | 71 | 1,160 | 1,523 | 5,232 |
CSS | 2 | 0 | 1 | 1,359 |
PHP | 5 | 80 | 26 | 710 |
JSON | 1 | 0 | 0 | 297 |
make | 1 | 7 | 3 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
There are no PNG files in this plugin