Benchmarks
Plugin footprint Passed 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.09MB] [CPU: ▼301.03ms] Passed 4 tests
Analyzing server-side resources used by ActiveTrail - Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.18 | 59.06 ▲4.84 |
Dashboard /wp-admin | 3.52 ▲0.12 | 37.81 ▼8.95 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 40.42 ▼1.40 |
Add New Post /wp-admin/post-new.php | 6.99 ▲0.02 | 99.05 ▼1,191.22 |
Media Library /wp-admin/upload.php | 3.40 ▲0.10 | 27.42 ▼2.54 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by ActiveTrail - Contact Form 7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,782 ▲60 | 15.75 ▼0.18 | 5.64 ▼0.48 | 2.16 ▼0.10 |
Dashboard /wp-admin | 2,911 ▲60 | 6.04 ▼0.18 | 116.38 ▼22.85 | 164.49 ▲2.13 |
Posts /wp-admin/edit.php | 2,705 ▲20 | 3.24 ▲0.01 | 68.52 ▲3.38 | 152.23 ▲5.85 |
Add New Post /wp-admin/post-new.php | 1,675 ▼23 | 16.70 ▼0.73 | 420.35 ▼1.26 | 158.97 ▲0.16 |
Media Library /wp-admin/upload.php | 1,709 ▲11 | 5.57 ▲0.01 | 140.61 ▼0.40 | 191.24 ▼0.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: error_stack in wp-content/plugins/activetrail-contact-form-7/admin/partials/activetrail-cfs-admin-display.php on line 18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/activetrail-contact-form-7/admin/partials/activetrail-cfs-admin-display.php:31
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/activetrail-contact-form-7/admin/partials/activetrail-cfs-admin-display.php on line 18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== activetrail-contact-form-7 ===
)
activetrail-contact-form-7/activetrail-cfs.php 85% from 13 tests
The main PHP file in "ActiveTrail - Contact Form 7" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("activetrail-contact-form-7.php" instead of "activetrail-cfs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin792 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 225 | 404 | 685 |
CSS | 1 | 17 | 4 | 74 |
JavaScript | 1 | 11 | 2 | 33 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 22 | 75.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 24.14% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/activetrail-logo.png | 32.30KB | 8.69KB | ▼ 73.09% |
admin/images/postal-marks.png | 0.33KB | 0.35KB | 0.00% |