Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/volunteers-guide/includes/helpers/MapConfig.php+134
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.88MB] [CPU: ▼66.28ms] Passed 4 tests
An overview of server-side resources used by The Volunteer's Guide
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 6.69 ▼40.55 |
Dashboard /wp-admin | 2.13 ▼1.21 | 7.93 ▼66.12 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 6.36 ▼48.64 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 9.40 ▼109.79 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 7.72 ▼31.33 |
Settings /wp-admin/admin.php?page=volunGSettings | 2.14 | 9.32 |
Overview /wp-admin/admin.php?page=volunGOverview | 2.14 | 7.10 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 186 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by The Volunteer's Guide
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.33 ▼0.27 | 1.81 ▲0.24 | 44.81 ▲4.31 |
Dashboard /wp-admin | 2,229 ▲52 | 5.70 ▲0.13 | 86.52 ▼9.96 | 42.02 ▲1.18 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.19 ▲0.17 | 33.97 ▼1.71 | 32.46 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,552 ▲23 | 23.14 ▼0.52 | 615.48 ▼3.05 | 56.37 ▲7.91 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.27 ▲0.05 | 105.49 ▼2.01 | 47.20 ▲0.94 |
Settings /wp-admin/admin.php?page=volunGSettings | 830 | 1.74 | 25.46 | 29.87 |
Overview /wp-admin/admin.php?page=volunGOverview | 839 | 1.74 | 27.22 | 29.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/volunteers-guide/includes/helpers/MapConfig.php+134
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=volunGOverview
- > Warning in wp-content/plugins/volunteers-guide/includes/helpers/MapConfig.php+134
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
SRP 0% 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 take a closer look at the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/volunteers-guide/public/partials/searchForm.php
- > /wp-content/plugins/volunteers-guide/VolunteersGuide.php
- > /wp-content/plugins/volunteers-guide/admin/partials/admin-page.php
- > /wp-content/plugins/volunteers-guide/public/partials/projectButton.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function VolunteersGuide\\submit_button() in wp-content/plugins/volunteers-guide/admin/partials-settings/settings-2.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function VolunteersGuide\\settings_fields() in wp-content/plugins/volunteers-guide/admin/partials-settings/settings-0.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function VolunteersGuide\\submit_button() in wp-content/plugins/volunteers-guide/admin/partials-settings/settings-1.php:11
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/volunteers-guide/includes/helpers/MapConfig.php on line 134
- > PHP Fatal error
Uncaught Error: Class 'VolunteersGuide\\Infos' not found in wp-content/plugins/volunteers-guide/public/partials/worldMap.php:11
- > PHP Notice
Undefined variable: projCode in wp-content/plugins/volunteers-guide/public/partials/projectButton.php on line 11
- > PHP Notice
Undefined variable: platoOrgId in wp-content/plugins/volunteers-guide/public/partials/searchForm.php on line 8
- > PHP Notice
Undefined variable: content in wp-content/plugins/volunteers-guide/public/partials/projectButton.php on line 12
- > PHP Notice
Undefined variable: platoOrgId in wp-content/plugins/volunteers-guide/public/partials/projectButton.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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: workcamp, alliance, volunteering, plato, map
volunteers-guide/VolunteersGuide.php 85% from 13 tests
The main PHP file in "The Volunteer's Guide" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("volunteers-guide.php" instead of "VolunteersGuide.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected32,805 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 154 | 271 | 820 | 32,482 |
JSON | 3 | 0 | 0 | 269 |
Markdown | 1 | 11 | 0 | 50 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 40 | 39.60% |
▷ Public methods | 81 | 80.20% |
▷ Protected methods | 13 | 12.87% |
▷ Private methods | 7 | 6.93% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin