Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.40ms] Passed 4 tests
This is a short check of server-side resources used by CB Contact Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.27 ▼31.52 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.36 ▼44.67 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 8.05 ▼41.61 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.56 ▼91.81 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.49 ▼28.72 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_cb_contact_form |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CB Contact Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.22 ▼1.46 | 1.89 ▲0.24 | 39.28 ▼5.74 |
Dashboard /wp-admin | 2,210 ▲34 | 4.90 ▼1.01 | 106.32 ▲3.54 | 41.92 ▼4.43 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 40.36 ▲0.64 | 34.84 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,527 ▼15 | 18.58 ▲0.47 | 593.37 ▼13.75 | 53.15 ▼6.39 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.22 ▲0.07 | 93.20 ▲0.30 | 41.70 ▲1.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cb-contact-form-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_cb_contact_form
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- 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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cb-contact-form/templates/widget.php:2
- > PHP Notice
Undefined variable: send_button in wp-content/plugins/cb-contact-form/templates/form.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cb-contact-form/CBContactWidget.class.php:3
- > PHP Notice
Undefined variable: nonce in wp-content/plugins/cb-contact-form/templates/form.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/cb-contact-form/templates/form.php:37
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cb-contact-form/CBContactWidget.class.php:3
- > 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 93% 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 to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Configuring widget details in admin panel.), #2 (Form sample)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== cb-contact-form ===
)
cb-contact-form/cb-contact-form.php Passed 13 tests
The main PHP file in "CB Contact Form" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
There are many contact form plugins and most of them have too many options that you don't need.
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 plugin313 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 34 | 37 | 243 |
CSS | 1 | 0 | 0 | 41 |
JavaScript | 1 | 1 | 0 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 9.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 15.46KB | 8.69KB | ▼ 43.83% |
screenshot-2.png | 4.25KB | 2.63KB | ▼ 38.26% |