Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼352.20ms] Passed 4 tests
Analyzing server-side resources used by Contact Form 7 - ActiveTrail integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 56.26 ▲5.88 |
Dashboard /wp-admin | 3.47 ▲0.06 | 33.90 ▲0.24 |
Posts /wp-admin/edit.php | 3.69 ▲0.06 | 39.53 ▲2.44 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 101.11 ▼1,412.92 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 25.90 ▲1.43 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form 7 - ActiveTrail integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,808 ▲64 | 15.65 ▼0.38 | 5.94 ▼0.02 | 2.58 ▲0.14 |
Dashboard /wp-admin | 2,901 ▲40 | 6.14 ▼0.03 | 117.53 ▼15.35 | 156.31 ▼7.89 |
Posts /wp-admin/edit.php | 2,705 ▲14 | 3.24 ▲0.00 | 65.04 ▲1.26 | 141.69 ▼5.32 |
Add New Post /wp-admin/post-new.php | 1,782 ▲125 | 17.21 ▼5.19 | 423.50 ▲22.56 | 160.95 ▲4.42 |
Media Library /wp-admin/upload.php | 1,711 ▲13 | 5.54 ▲0.01 | 141.49 ▼11.22 | 191.09 ▲7.29 |
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
Uninstaller ran successfully
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
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-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/activetrail-contact-form-7-integration/activetrail-addon.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (this is an example of how it will look like)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== activetrail-contact-form-7-integration ===
) - Screenshots: Add a description for screenshot #0 in activetrail-contact-form-7-integration/assets to your readme.txt
activetrail-contact-form-7-integration/activetrail-addon.php 92% from 13 tests
"Contact Form 7 - ActiveTrail integration" version 0.2'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: It is recommended to name the main PHP file as the plugin slug ("activetrail-contact-form-7-integration.php" instead of "activetrail-addon.php")
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 plugin560 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 179 | 83 | 560 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.50% |
Functions | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin