Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼303.47ms] Passed 4 tests
An overview of server-side resources used by Accept Shortcodes - Contact Form 7
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 53.06 ▼0.05 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.51 ▼0.54 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 35.98 ▼9.38 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 91.96 ▼1,203.92 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 25.56 ▼0.02 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Accept Shortcodes - Contact Form 7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲31 | 16.11 ▲0.14 | 7.37 ▲1.01 | 2.64 ▼0.11 |
Dashboard /wp-admin | 2,895 ▲34 | 6.12 ▼0.09 | 118.25 ▼18.15 | 157.09 ▲1.07 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▲0.00 | 64.61 ▲3.96 | 139.44 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,661 ▼50 | 16.25 ▼4.43 | 410.71 ▼42.24 | 157.37 ▼4.73 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.50 ▼0.05 | 140.76 ▼1.54 | 185.80 ▼0.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/accept-shorcodes-contact-form-7/cf7-accept-shortcodes.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: form, custom, contact form, shortcode, contact
accept-shorcodes-contact-form-7/cf7-accept-shortcodes.php 92% from 13 tests
The primary PHP file in "Accept Shortcodes - Contact Form 7" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("accept-shorcodes-contact-form-7.php" instead of "cf7-accept-shortcodes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin11 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 2 | 11 | 11 |
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.00 |
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 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected