Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.16ms] Passed 4 tests
A check of server-side resources used by OB Contact Form to DB
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.81 ▼0.25 |
Dashboard /wp-admin | 3.34 ▲0.03 | 63.13 ▲12.46 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.54 ▼5.57 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.63 ▼5.86 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.90 ▼0.97 |
Entries /wp-admin/admin.php?page=entries | 3.21 | 29.19 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OB Contact Form to DB
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.17 | 1.67 ▼0.20 | 44.16 ▲0.73 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▲0.96 | 112.74 ▼3.06 | 38.10 ▼3.78 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.02 | 39.68 ▼3.43 | 35.05 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.46 ▲0.10 | 673.18 ▲74.33 | 53.72 ▲6.63 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.31 ▲0.13 | 95.91 ▼4.73 | 43.14 ▼0.10 |
Entries /wp-admin/admin.php?page=entries | 1,074 | 2.67 | 61.93 | 69.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ob-contact-form-to-db/contact-form-db.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Screenshot #1 (OB Contact Form to DB Entries) image missing
ob-contact-form-to-db/contact-form-db.php 85% from 13 tests
The primary PHP file in "OB Contact Form to DB" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ob-contact-form-to-db.php" instead of "contact-form-db.php")
- Description: Keep the plugin description shorter than 140 characters (currently 199 characters long)
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
Success! There were no dangerous files found in this plugin11,358 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 2,743 | 8,268 | 9,421 |
CSS | 7 | 148 | 159 | 1,595 |
PHP | 1 | 18 | 15 | 201 |
JSON | 4 | 0 | 0 | 108 |
Markdown | 2 | 29 | 0 | 33 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 5 | |
▷ Named functions | 5 | 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
25 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
DataTables/media/images/back_enabled_hover.png | 1.34KB | 0.60KB | ▼ 55.56% |
DataTables/extensions/TableTools/images/csv.png | 1.57KB | 1.02KB | ▼ 35.10% |
DataTables/extensions/TableTools/images/background.png | 0.92KB | 0.08KB | ▼ 91.21% |
DataTables/extensions/TableTools/images/xls_hover.png | 2.01KB | 1.31KB | ▼ 35.13% |
DataTables/media/images/sort_asc.png | 1.09KB | 0.25KB | ▼ 77.46% |