Benchmarks
Plugin footprint 65% 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.00MB] [CPU: ▼3.71ms] Passed 4 tests
Server-side resources used by Salesmate Add-On for Gravity Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 46.23 ▼3.36 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.40 ▼5.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.01 ▲0.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.50 ▼6.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.02 ▲1.12 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_salesmatelogs |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Salesmate Add-On for Gravity Forms: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.45 | 1.76 ▲0.10 | 45.62 ▲3.08 |
Dashboard /wp-admin | 2,198 ▲24 | 5.58 ▲0.05 | 92.54 ▼8.68 | 40.88 ▼5.34 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.01 | 42.07 ▲2.74 | 35.97 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.04 ▼0.07 | 677.30 ▼35.75 | 48.01 ▼7.08 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.12 ▼0.07 | 113.30 ▲5.26 | 47.84 ▲0.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_salesmatelogs
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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 | 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gf-salesmate-add-on/salesmate.php:37
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-salesmate-add-on/class-gfsalesmate.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Settings: Salesmate's credential for activate form feed mapping.), #2 (Feed Page: Create feeds from here for create contacts and deals.), #3 (Field Mapping for Contact: Map Gravity form's field with Salesmate CRM's field to create contact.), #4 (Field Mapping for Deal: Map Gravity form's field with Salesmate CRM's field to create deal.)
gf-salesmate-add-on/salesmate.php 85% from 13 tests
Analyzing the main PHP file in "Salesmate Add-On for Gravity Forms" version 2.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gf-salesmate-add-on.php" instead of "salesmate.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,237 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 309 | 166 | 1,032 |
JavaScript | 1 | 53 | 1 | 176 |
CSS | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.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 | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshots/screenshot-4.png | 28.45KB | 11.24KB | ▼ 60.50% |
images/screenshots/screenshot-2.png | 36.17KB | 14.13KB | ▼ 60.92% |
images/screenshots/screenshot-3.png | 49.68KB | 20.20KB | ▼ 59.34% |
images/screenshots/screenshot-1.png | 74.87KB | 28.13KB | ▼ 62.43% |