Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/cf7-lead-manager/index.php+17
Use of undefined constant CF7LM_PLUGIN_SHORT_NAME - assumed 'CF7LM_PLUGIN_SHORT_NAME' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.87ms] Passed 4 tests
A check of server-side resources used by WP contact form 7 db & Lead Manager plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.09 ▲0.43 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.57 ▼2.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.80 ▲0.92 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.37 ▼12.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.97 ▼1.00 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
WP contact form 7 db & Lead Manager plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.30 ▼1.38 | 1.72 ▼0.07 | 44.08 ▼0.55 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼0.05 | 106.66 ▲5.10 | 37.98 ▼3.13 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.01 | 36.43 ▼5.35 | 33.40 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.23 ▲0.03 | 640.08 ▲24.65 | 63.14 ▲7.00 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▲0.01 | 91.43 ▼6.68 | 40.98 ▼1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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 | 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
Almost there! Just fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cf7-lead-manager/admin/index.php
- > /wp-content/plugins/cf7-lead-manager/includes/plugin_install.php
- > /wp-content/plugins/cf7-lead-manager/admin/tabs.php
- > /wp-content/plugins/cf7-lead-manager/index.php
- > /wp-content/plugins/cf7-lead-manager/includes/CF7LM.class.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (CF7LM settings page), #2 (Leads view), #3 (Reports View)
cf7-lead-manager/index.php 92% from 13 tests
The main PHP file in "WP contact form 7 db & Lead Manager plugin" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cf7-lead-manager.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin474 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 152 | 60 | 474 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.87MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/csv-export.png | 5.05KB | 2.07KB | ▼ 58.99% |
admin/settings.png | 1.40KB | 1.33KB | ▼ 4.68% |
screenshot-1.png | 271.75KB | 66.69KB | ▼ 75.46% |
screenshot-3.png | 273.66KB | 67.07KB | ▼ 75.49% |
screenshot-2.png | 340.01KB | 89.69KB | ▼ 73.62% |