Benchmarks
Plugin footprint 83% from 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.27MB] [CPU: ▼307.97ms] Passed 4 tests
A check of server-side resources used by iContact, InfusionSoft form Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.32 | 62.16 ▲8.77 |
Dashboard /wp-admin | 3.68 ▲0.27 | 38.11 ▼5.15 |
Posts /wp-admin/edit.php | 3.90 ▲0.26 | 40.45 ▼0.80 |
Add New Post /wp-admin/post-new.php | 7.20 ▲0.23 | 98.03 ▼1,226.57 |
Media Library /wp-admin/upload.php | 3.62 ▲0.32 | 30.76 ▲0.63 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: 1 new table, no new options
New tables |
---|
wp_shortcode_form |
Browser metrics Passed 4 tests
A check of browser resources used by iContact, InfusionSoft form Popup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,926 ▲184 | 15.96 ▲0.34 | 9.56 ▲3.13 | 2.86 ▲0.57 |
Dashboard /wp-admin | 2,905 ▲51 | 6.10 ▼0.06 | 118.87 ▼14.91 | 174.63 ▲16.05 |
Posts /wp-admin/edit.php | 2,685 ▼9 | 3.27 ▲0.03 | 68.80 ▲4.53 | 141.17 ▼4.44 |
Add New Post /wp-admin/post-new.php | 1,680 ▲45 | 16.15 ▼3.24 | 420.48 ▼84.37 | 161.19 ▲16.87 |
Media Library /wp-admin/upload.php | 1,709 ▲14 | 5.57 ▲0.03 | 128.12 ▼35.75 | 211.72 ▼3.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_shortcode_form
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/icontact-infusionsoft-from-popup/add-form.php
- > /wp-content/plugins/icontact-infusionsoft-from-popup/manage-form.php
- > /wp-content/plugins/icontact-infusionsoft-from-popup/form-popup.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Layout Add new form), #2 (Layout Manage form), #3 (Add shortcode to the page/post to display the form button), #4 (Sample iContact popup form layout), #5 (Sample InfusionSoft popup form layout)
icontact-infusionsoft-from-popup/form-popup.php 92% from 13 tests
The principal PHP file in "iContact, InfusionSoft form Popup" v. 1.1 is loaded by WordPress automatically on each request
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 ("icontact-infusionsoft-from-popup.php" instead of "form-popup.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,253 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 298 | 441 | 2,053 |
JavaScript | 5 | 293 | 121 | 888 |
CSS | 3 | 55 | 81 | 312 |
PHP code Passed 2 tests
This is a very shot review of 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.48 |
Average class complexity | 163.50 |
▷ Minimum class complexity | 130.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 1 | 1.18% |
▷ Public methods | 69 | 81.18% |
▷ Protected methods | 16 | 18.82% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.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
25 PNG files occupy 0.24MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 32.05KB | 15.03KB | ▼ 53.10% |
screenshot-1.png | 45.90KB | 19.56KB | ▼ 57.38% |
screenshot-5.png | 48.42KB | 19.75KB | ▼ 59.20% |
fancybox/fancybox-y.png | 0.17KB | 0.24KB | 0.00% |
fancybox/fancy_close.png | 1.48KB | 1.73KB | 0.00% |