Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.57ms] Passed 4 tests
This is a short check of server-side resources used by PJ Contact Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.44 ▼7.23 |
Dashboard /wp-admin | 3.37 ▲0.06 | 55.33 ▲3.02 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 50.72 ▼1.27 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.06 | 87.64 ▼20.78 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 38.89 ▲3.81 |
Add New /wp-admin/post-new.php?post_type=emails | 3.33 | 48.27 |
Emails /wp-admin/edit.php?post_type=emails | 3.34 | 40.33 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PJ Contact Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲182 | 13.80 ▼0.49 | 9.03 ▲7.40 | 42.29 ▼1.76 |
Dashboard /wp-admin | 2,241 ▲61 | 5.59 ▼0.08 | 89.83 ▼1.90 | 39.89 ▼1.40 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 1.96 ▼0.06 | 42.04 ▲3.95 | 38.70 ▲1.68 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.12 ▼0.59 | 661.25 ▼43.84 | 68.06 ▲6.97 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.29 ▲0.09 | 101.27 ▲2.91 | 44.24 ▼0.32 |
Add New /wp-admin/post-new.php?post_type=emails | 1,539 | 2.51 | 59.30 | 65.78 |
Emails /wp-admin/edit.php?post_type=emails | 1,132 | 1.98 | 31.44 | 31.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=emails
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pj-contact-form/templates/pjcf-settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: simple contact form, contact form, send email, contact, form
pj-contact-form/pj-contact-form.php Passed 13 tests
The main PHP file in "PJ Contact Form" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
20 characters long description:
Contact Form Plugin.
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
Good job! No executable or dangerous file extensions detected249 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 35 | 32 | 249 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 12 | |
▷ Named functions | 12 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin