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
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼0.74ms] Passed 4 tests
This is a short check of server-side resources used by BuddyForms Form Elements for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 43.16 ▲6.36 |
Dashboard /wp-admin | 3.74 ▲0.44 | 49.37 ▼0.75 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 42.07 ▼5.13 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 85.01 ▼2.13 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 39.25 ▲5.05 |
Install Plugins /wp-admin/plugins.php?page=bf_wc_fe-install-plugins | 3.67 | 31.61 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for BuddyForms Form Elements for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲37 | 14.32 ▲0.05 | 1.66 ▼0.35 | 37.72 ▼0.55 |
Dashboard /wp-admin | 2,229 ▲49 | 5.63 ▲0.02 | 88.53 ▼4.15 | 39.90 ▲3.08 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.02 ▲0.02 | 37.23 ▼0.01 | 35.63 ▼11.59 |
Add New Post /wp-admin/post-new.php | 1,556 ▲21 | 23.20 ▲5.19 | 594.95 ▼45.78 | 57.57 ▼11.49 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.23 ▲0.12 | 99.91 ▼5.90 | 53.32 ▲6.61 |
Install Plugins /wp-admin/plugins.php?page=bf_wc_fe-install-plugins | 1,002 | 2.06 | 26.44 | 30.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: frontend editing, taxonomy, user, profiles, custom post types...
buddyforms-woocommerce-form-elements/loader.php 77% from 13 tests
"BuddyForms Form Elements for WooCommerce" version 1.5.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("buddyforms-woocommerce-form-elements.php" instead of "loader.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("3.9" instead of "3.7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin11,916 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 17 | 1,449 | 1,993 | 4,842 |
JavaScript | 11 | 558 | 329 | 3,893 |
PHP | 13 | 306 | 270 | 1,955 |
CSS | 5 | 42 | 69 | 1,206 |
JSON | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 30.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 163 | |
▷ Static methods | 24 | 14.72% |
▷ Public methods | 137 | 84.05% |
▷ Protected methods | 23 | 14.11% |
▷ Private methods | 3 | 1.84% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin