Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.29MB] [CPU: ▼303.57ms] Passed 4 tests
An overview of server-side resources used by DB Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 80.37 ▲28.00 |
Dashboard /wp-admin | 3.32 ▼0.08 | 24.50 ▼11.14 |
Posts /wp-admin/edit.php | 3.39 ▼0.25 | 27.16 ▼15.68 |
Add New Post /wp-admin/post-new.php | 6.10 ▼0.87 | 140.77 ▼1,179.89 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 21.42 ▼7.58 |
DB Form /wp-admin/admin.php?page=dbf_settings | 3.30 | 25.88 |
Error Messages /wp-admin/admin.php?page=dbf-error-messages | 3.30 | 23.09 |
Server storage [IO: ▲0.25MB] [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: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
DB Form: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,855 ▲133 | 15.97 ▲0.70 | 6.50 ▲0.31 | 2.16 ▲0.10 |
Dashboard /wp-admin | 2,962 ▲104 | 6.12 ▼0.14 | 131.39 ▼14.94 | 170.83 ▲1.74 |
Posts /wp-admin/edit.php | 2,760 ▲66 | 3.25 ▲0.01 | 65.08 ▲1.72 | 145.02 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,714 ▼3 | 18.56 ▼2.75 | 400.66 ▼58.15 | 214.95 ▲47.46 |
Media Library /wp-admin/upload.php | 1,769 ▲74 | 5.54 ▼0.00 | 141.00 ▼2.30 | 196.11 ▼51.04 |
DB Form /wp-admin/admin.php?page=dbf_settings | 1,303 | 2.41 | 55.39 | 154.28 |
Error Messages /wp-admin/admin.php?page=dbf-error-messages | 1,142 | 2.55 | 56.62 | 129.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dbf-error-messages
- > Notice in wp-content/plugins/db-form/php/admin111.php+15
Undefined index: dbf_got_notice
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dbf-error-messages
- > Notice in wp-content/plugins/db-form/php/admin111.php+72
Undefined index: settings-updated
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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/db-form/php/connector111.php
- 3× 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/db-form/php/admin111.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/db-form/php/shortcodes111.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/db-form/db_form_plugin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Possible form configuration), #2 (Error message), #3 (Admin Panel)
db-form/db_form_plugin.php 92% from 13 tests
The principal PHP file in "DB Form" v. 1.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("db-form.php" instead of "db_form_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,213 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 120 | 119 | 995 |
CSS | 2 | 22 | 7 | 212 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
8 PNG files occupy 0.20MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 53.79KB | 22.13KB | ▼ 58.85% |
screenshot-3.png | 115.73KB | 37.66KB | ▼ 67.46% |
img/icon_warning.png | 0.30KB | 0.35KB | 0.00% |
img/icon_submit_invert.png | 0.24KB | 0.33KB | 0.00% |
img/icon_submit.png | 0.26KB | 0.33KB | 0.00% |