Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼284.90ms] Passed 4 tests
Server-side resources used by Simple Contact Form
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.01 ▲0.69 |
Dashboard /wp-admin | 3.07 ▲0.02 | 39.70 ▼2.96 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 46.14 ▲8.54 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 93.20 ▼1,124.07 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 28.22 ▼13.25 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Simple Contact Form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲68 | 16.25 ▲0.76 | 7.99 ▼2.08 | 50.98 ▼2.66 |
Dashboard /wp-admin | 2,931 ▲81 | 5.92 ▲0.06 | 139.62 ▼13.95 | 106.14 ▼4.51 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.68 ▼0.02 | 73.67 ▲2.38 | 98.16 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,653 ▼3 | 18.87 ▲4.40 | 381.52 ▼40.60 | 115.04 ▼1.48 |
Media Library /wp-admin/upload.php | 1,775 ▲3 | 4.99 ▼0.02 | 159.69 ▼18.49 | 116.58 ▼9.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
caleb-contact-form/contact-plugin.php 92% from 13 tests
"Simple Contact Form" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("caleb-contact-form.php" instead of "contact-plugin.php")
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
Success! There were no dangerous files found in this plugin174 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 23 | 11 | 170 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of 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 | 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 | 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 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin