Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.12MB] [CPU: ▲3.57ms] Passed 4 tests
An overview of server-side resources used by Contact Form to DB by BestWebSoft - Messages Database Plugin For WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.62 ▲1.16 | 56.90 ▲12.26 |
Dashboard /wp-admin | 4.46 ▲1.15 | 57.96 ▲6.33 |
Posts /wp-admin/edit.php | 4.51 ▲1.15 | 51.98 ▲2.24 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.11 | 91.73 ▲0.49 |
Media Library /wp-admin/upload.php | 4.32 ▲1.09 | 46.49 ▲5.21 |
BWS Panel /wp-admin/admin.php?page=cntctfrmtdb-bws-panel | 4.62 | 47.24 |
CF7 to DB /wp-admin/admin.php?page=cntctfrmtdb_manager_cf7 | 4.28 | 38.07 |
POJO to DB /wp-admin/admin.php?page=cntctfrmtdb_manager_pojo | 4.28 | 41.54 |
CF to DB /wp-admin/admin.php?page=cntctfrmtdb_manager | 4.30 | 45.09 |
Server storage [IO: ▲5.22MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 129 new files
Database: 7 new tables, 8 new options
New tables |
---|
wp_cntctfrmtdb_refer |
wp_cntctfrmtdb_blogname |
wp_cntctfrmtdb_message |
wp_cntctfrmtdb_to_email |
wp_cntctfrmtdb_message_status |
wp_cntctfrmtdb_field_selection |
wp_cntctfrmtdb_hosted_site |
New WordPress options |
---|
widget_recent-posts |
cntctfrmtdb_options |
widget_recent-comments |
bstwbsftwppdtplgns_options |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contact Form to DB by BestWebSoft - Messages Database Plugin For WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲99 | 14.26 ▼0.02 | 1.99 ▲0.25 | 40.59 ▼1.28 |
Dashboard /wp-admin | 2,238 ▲57 | 5.61 ▼0.11 | 86.51 ▼16.19 | 44.78 ▼1.19 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.05 ▲0.07 | 35.88 ▼5.48 | 39.60 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 22.81 ▼0.47 | 639.72 ▼32.36 | 58.40 ▼1.85 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.20 ▲0.03 | 99.65 ▲1.33 | 44.83 ▼0.72 |
BWS Panel /wp-admin/admin.php?page=cntctfrmtdb-bws-panel | 2,859 | 2.02 | 38.04 | 75.19 |
Settings /wp-admin/contact_form_to_db.php | 26 | 0.42 | 0.10 | 14.62 |
CF7 to DB /wp-admin/admin.php?page=cntctfrmtdb_manager_cf7 | 1,173 | 1.78 | 24.33 | 26.27 |
POJO to DB /wp-admin/admin.php?page=cntctfrmtdb_manager_pojo | 1,176 | 1.71 | 25.07 | 29.47 |
CF to DB /wp-admin/admin.php?page=cntctfrmtdb_manager | 1,257 | 1.97 | 29.93 | 32.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 7 tables
- wp_cntctfrmtdb_field_selection
- wp_cntctfrmtdb_hosted_site
- wp_cntctfrmtdb_refer
- wp_cntctfrmtdb_message
- wp_cntctfrmtdb_to_email
- wp_cntctfrmtdb_message_status
- wp_cntctfrmtdb_blogname
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- cntctfrmtdb_options
- can_compress_scripts
- bstwbsftwppdtplgns_options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/contact-form-to-db/includes/class-cntctfrmtdb-settings.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-form-to-db/contact_form_to_db.php on line 1356
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/contact-form-to-db/contact_form_to_db.php on line 1356
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/contact-form-to-db/contact_form_to_db.php on line 1356
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/contact-form-to-db/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-to-db/bws_menu/class-bws-settings.php:1453
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=cntctfrmtdb-bws-panel
- > Network (severe)
http://ps.w.org/custom-admin-page/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/contact_form_to_db.php
- > Network (severe)
wp-admin/contact_form_to_db.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Plugin settings in WordPress admin panel.), #2 (Contact Form to DB manager page display.), #3 (Message on the Contact Form to DB manager page display.), #4 (Spam page on the Contact Form to DB manager page display.)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
contact-form-to-db/contact_form_to_db.php 92% from 13 tests
The entry point to "Contact Form to DB by BestWebSoft - Messages Database Plugin For WordPress" version 1.7.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("contact-form-to-db.php" instead of "contact_form_to_db.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected22,289 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 6,162 | 11,745 | 9,603 |
PHP | 9 | 556 | 726 | 6,349 |
CSS | 9 | 156 | 256 | 5,481 |
JavaScript | 6 | 37 | 138 | 689 |
SVG | 4 | 0 | 0 | 167 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 78.25 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 9.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.67% |
Functions | 78 | |
▷ Named functions | 78 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
65 PNG files occupy 3.28MB with 1.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/status-icons.png | 2.47KB | 2.54KB | 0.00% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
bws_menu/icons/themes/renty.png | 657.95KB | 198.11KB | ▼ 69.89% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_95_fef1ec_1x400.png | 0.38KB | 0.17KB | ▼ 53.39% |