Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.14ms] Passed 4 tests
Analyzing server-side resources used by CPT Contact Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.24 ▼5.80 |
Dashboard /wp-admin | 3.39 ▲0.05 | 47.39 ▼25.03 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 55.75 ▲4.21 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 97.86 ▲2.06 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 44.25 ▲4.64 |
New Contact Message /wp-admin/post-new.php?post_type=contact-message | 3.35 | 45.33 |
CPT Contact Form /wp-admin/options-general.php?page=cptcf-options-menu | 3.28 | 31.15 |
All Contact Messages /wp-admin/edit.php?post_type=contact-message | 3.36 | 40.62 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CPT Contact Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.57 ▼0.81 | 1.71 ▼0.14 | 41.22 ▼2.29 |
Dashboard /wp-admin | 2,236 ▲51 | 4.93 ▼0.91 | 98.11 ▼8.13 | 73.58 ▲27.91 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 1.99 ▼0.03 | 37.84 ▲0.24 | 35.73 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,693 ▲179 | 22.59 ▲4.83 | 719.19 ▲17.99 | 46.73 ▼7.48 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.25 ▲0.05 | 109.11 ▼9.03 | 77.20 ▲28.83 |
New Contact Message /wp-admin/post-new.php?post_type=contact-message | 1,445 | 2.60 | 50.03 | 58.09 |
CPT Contact Form /wp-admin/options-general.php?page=cptcf-options-menu | 874 | 2.07 | 26.99 | 31.11 |
All Contact Messages /wp-admin/edit.php?post_type=contact-message | 1,102 | 1.94 | 33.21 | 32.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpt-contact-form/plugin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: contact form, custom post type, shortcode
cpt-contact-form/plugin.php 85% from 13 tests
"CPT Contact Form" version 0.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cpt-contact-form.php" instead of "plugin.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin430 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 17 | 317 |
PO File | 1 | 39 | 155 | 86 |
JavaScript | 1 | 5 | 0 | 27 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/contact_form.png | 0.46KB | 0.49KB | 0.00% |