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 gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼4.03ms] Passed 4 tests
Server-side resources used by GB Forms DB
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 35.90 ▼14.52 |
Dashboard /wp-admin | 3.50 ▲0.20 | 48.31 ▼1.49 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 47.61 ▼3.39 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 96.50 ▲3.75 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.79 ▲3.30 |
All Leads /wp-admin/admin.php?page=gbformsdbadmin_leads | 3.39 | 32.87 |
GB Forms DB /wp-admin/admin.php?page=gbformsdbadmin | 3.39 | 49.50 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
gbfdb_supported_plugins |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GB Forms DB
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.67 ▼1.09 | 1.70 ▼0.37 | 42.83 ▼13.65 |
Dashboard /wp-admin | 2,229 ▲41 | 5.95 ▲1.06 | 99.35 ▼15.17 | 82.04 ▲42.63 |
Posts /wp-admin/edit.php | 2,121 ▲35 | 1.99 ▼0.05 | 38.25 ▼0.39 | 34.24 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,550 ▲21 | 18.50 ▲0.56 | 720.20 ▼1.43 | 58.62 ▼9.80 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.24 ▲0.05 | 98.79 ▼1.71 | 73.49 ▲30.11 |
All Leads /wp-admin/admin.php?page=gbformsdbadmin_leads | 817 | 1.84 | 26.10 | 25.14 |
GB Forms DB /wp-admin/admin.php?page=gbformsdbadmin | 1,088 | 1.85 | 39.73 | 68.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- gbfdb_supported_plugins
- theysaidso_admin_options
Smoke tests 50% 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=gbformsdbadmin
- > Notice in wp-content/plugins/gb-forms-db/gb-forms-db.php+37
ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/gb-forms-db/core/class/GBFields.php
- > /wp-content/plugins/gb-forms-db/core/class/class-start.php
- > /wp-content/plugins/gb-forms-db/core/class/GBFLeads.php
- > /wp-content/plugins/gb-forms-db/gb-forms-db.php
- > /wp-content/plugins/gb-forms-db/core/class/GBFDBAdmin.php
- > /wp-content/plugins/gb-forms-db/core/gbfdb_notice.php
- > /wp-content/plugins/gb-forms-db/core/class/GBFLead.php
- > /wp-content/plugins/gb-forms-db/core/functions.php
- > /wp-content/plugins/gb-forms-db/core/class/GBFDBFront.php
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
gb-forms-db/gb-forms-db.php Passed 13 tests
The principal PHP file in "GB Forms DB" v. 1.0.2 is loaded by WordPress automatically on each request
48 characters long description:
save all forms leads as GB Forms DB based on CPT
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,879 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 306 | 429 | 1,816 |
CSS | 4 | 57 | 8 | 1,088 |
JavaScript | 8 | 99 | 38 | 728 |
PO File | 1 | 104 | 114 | 247 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 36.71 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 73 | 76.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 23.16% |
Functions | 25 | |
▷ Named functions | 20 | 80.00% |
▷ Anonymous functions | 5 | 20.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/status-new.png | 1.70KB | 0.60KB | ▼ 64.68% |
images/gb_admin_menu.png | 1.49KB | 0.85KB | ▼ 43.30% |
images/rtl-status-new.png | 1.67KB | 0.61KB | ▼ 63.56% |