Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼0.60ms] Passed 4 tests
Analyzing server-side resources used by Contact Form 7 Google Analytics Intelligence
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.91 ▼0.43 |
Dashboard /wp-admin | 3.56 ▲0.25 | 48.99 ▼1.80 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 51.75 ▼1.47 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 100.99 ▲5.72 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 40.73 ▲1.29 |
Intelligence /wp-admin/admin.php?page=intel_admin | 3.48 | 489.78 |
Setup /wp-admin/admin.php?page=intel_config | 3.48 | 464.24 |
Intelligence /wp-admin/admin.php?page=wpcf7_intel | 3.45 | 34.73 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
intel_setup |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Contact Form 7 Google Analytics Intelligence
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲56 | 13.28 ▼1.29 | 1.67 ▼0.32 | 53.70 ▲7.49 |
Dashboard /wp-admin | 2,236 ▲45 | 4.85 ▼0.05 | 98.52 ▼21.21 | 42.84 ▼3.99 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 1.99 ▼0.03 | 40.18 ▲2.04 | 37.50 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,559 ▲24 | 23.06 ▼0.17 | 598.81 ▼107.30 | 50.95 ▼11.64 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.20 ▼0.05 | 101.09 ▼2.00 | 42.51 ▼5.97 |
Intelligence /wp-admin/admin.php?page=intel_admin | 860 | 2.36 | 28.97 | 31.97 |
Setup /wp-admin/admin.php?page=intel_config | 860 | 2.36 | 27.50 | 29.32 |
Intelligence /wp-admin/admin.php?page=wpcf7_intel | 781 | 2.03 | 27.15 | 25.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- intel_setup
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include_once(): Failed opening 'INTEL_DIRadmin/intel.admin_setup.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cf7-intelligence/admin/wpcf7_intel.admin_setup.php on line 9
- > PHP Warning
include_once(): Failed opening 'INTEL_DIRincludes/intel.wizard.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cf7-intelligence/admin/wpcf7_intel.admin_setup.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cf7-intelligence/intel_com/intel.setup.php:396
- > PHP Warning
Use of undefined constant INTEL_DIR - assumed 'INTEL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-intelligence/admin/wpcf7_intel.admin_setup.php on line 7
- > PHP Warning
Use of undefined constant INTEL_DIR - assumed 'INTEL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-intelligence/admin/wpcf7_intel.admin_setup.php on line 9
- > PHP Warning
include_once(INTEL_DIRadmin/intel.admin_setup.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-intelligence/admin/wpcf7_intel.admin_setup.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function wpcf7_intel() in wp-content/plugins/cf7-intelligence/wpcf7_intel.setup.php:13
- > PHP Warning
include_once(INTEL_DIRincludes/intel.wizard.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-intelligence/admin/wpcf7_intel.admin_setup.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: "getlevelten.com/blog/tom"
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in cf7-intelligence/assets to your readme.txt
cf7-intelligence/wpcf7-intel.php 77% from 13 tests
The primary PHP file in "Contact Form 7 Google Analytics Intelligence" version 1.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("cf7-intelligence.php" instead of "wpcf7-intel.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin1,549 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 381 | 361 | 1,440 |
CSS | 3 | 29 | 5 | 103 |
JavaScript | 1 | 13 | 32 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 1 | 3.45% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
intel_com/images/icon-128x128.png | 27.82KB | 4.74KB | ▼ 82.95% |