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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼4.99ms] Passed 4 tests
A check of server-side resources used by WP Libre Form
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 37.90 ▼4.72 |
Dashboard /wp-admin | 3.54 ▲0.24 | 43.33 ▼5.52 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 50.54 ▲6.07 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 84.61 ▼9.23 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 36.49 ▼0.49 |
All Forms /wp-admin/edit.php?post_type=wplf-form | 3.52 | 35.99 |
New Form /wp-admin/post-new.php?post_type=wplf-form | 3.56 | 48.15 |
Submissions /wp-admin/edit.php?post_type=wplf-submission | 3.52 | 44.32 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Libre Form: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.24 ▼1.14 | 1.60 ▼0.21 | 43.23 ▼1.83 |
Dashboard /wp-admin | 2,237 ▲49 | 5.83 ▼0.05 | 98.40 ▼9.55 | 38.59 ▼8.81 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 1.97 ▼0.03 | 38.79 ▲2.86 | 33.79 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,562 ▲43 | 23.18 ▼0.11 | 651.95 ▼15.12 | 50.92 ▼3.27 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.22 ▲0.02 | 97.17 ▼0.82 | 43.08 ▼1.94 |
All Forms /wp-admin/edit.php?post_type=wplf-form | 1,100 | 1.93 | 30.53 | 29.13 |
New Form /wp-admin/post-new.php?post_type=wplf-form | 2,367 | 4.21 | 82.00 | 53.86 |
Submissions /wp-admin/edit.php?post_type=wplf-submission | 1,129 | 2.00 | 30.22 | 30.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-libre-form/inc/wplf-ajax.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-libre-form/inc/wplf-form-actions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-libre-form/inc/wplf-form-validation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-libre-form/inc/wplf-ajax.php:6
- > 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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: contact, collector, html, form, lead...
wp-libre-form/wp-libre-form.php Passed 13 tests
The main PHP script in "WP Libre Form" version 1.4.3 is automatically included on every request by WordPress
62 characters long description:
A minimal HTML form builder for WordPress; made for developers
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
Good job! No executable or dangerous file extensions detected2,013 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 284 | 417 | 1,285 |
PO File | 2 | 144 | 159 | 348 |
Markdown | 2 | 75 | 0 | 162 |
JavaScript | 4 | 42 | 29 | 149 |
XML | 1 | 31 | 50 | 51 |
JSON | 2 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 11 | 14.29% |
▷ Public methods | 75 | 97.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.60% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 1.39MB with 0.85MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 66.83KB | 24.68KB | ▼ 63.07% |
assets/icon-256x256.png | 9.89KB | 4.91KB | ▼ 50.41% |
assets/icon-128x128.png | 5.12KB | 2.67KB | ▼ 47.95% |
assets/screenshot-3.png | 181.89KB | 50.29KB | ▼ 72.35% |
assets/screenshot-4.png | 252.17KB | 69.26KB | ▼ 72.53% |