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.78MB] [CPU: ▲6.38ms] Passed 4 tests
Analyzing server-side resources used by Sprout Clients - CRM and Lead Management
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 41.27 ▲3.80 |
Dashboard /wp-admin | 4.12 ▲0.82 | 59.56 ▲10.34 |
Posts /wp-admin/edit.php | 4.16 ▲0.80 | 58.94 ▲13.09 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 99.89 ▲1.64 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 46.23 ▲9.72 |
Leads /wp-admin/edit.php?post_type=sa_client | 4.10 | 47.57 |
Sprout Clients /wp-admin/options-general.php?page=sprout-clients | 4.04 | 40.46 |
Add Lead /wp-admin/post-new.php?post_type=sa_client | 4.21 | 59.67 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 4.38 | 40.05 |
Server storage [IO: ▲4.89MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 305 new files
Database: no new tables, 13 new options
New WordPress options |
---|
fs_active_plugins |
fs_gdpr |
fs_accounts |
sc_current_version |
widget_recent-posts |
can_compress_scripts |
sc_load_client_defaults |
sc_do_activation_redirect |
fs_debug_mode |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Sprout Clients - CRM and Lead Management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲139 | 14.60 ▲0.22 | 1.61 ▼0.41 | 27.83 ▼17.54 |
Dashboard /wp-admin | 2,277 ▲89 | 4.90 ▼0.99 | 107.19 ▼0.68 | 40.46 ▲0.40 |
Posts /wp-admin/edit.php | 2,163 ▲74 | 2.01 ▼0.05 | 40.66 ▲6.31 | 39.71 ▲4.04 |
Add New Post /wp-admin/post-new.php | 1,573 ▲48 | 18.47 ▼4.39 | 596.97 ▲20.63 | 51.41 ▼0.91 |
Media Library /wp-admin/upload.php | 1,459 ▲68 | 4.25 ▲0.06 | 97.01 ▼0.39 | 46.96 ▲2.07 |
Leads /wp-admin/edit.php?post_type=sa_client | 1,231 | 2.32 | 36.47 | 31.66 |
Sprout Clients /wp-admin/options-general.php?page=sprout-clients | 862 | 1.90 | 27.20 | 23.97 |
Add Lead /wp-admin/post-new.php?post_type=sa_client | 4,293 | 3.30 | 67.87 | 63.52 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,088 | 1.70 | 26.14 | 26.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/sprout-clients/controllers/updates/freemius-sdk/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 13 options
- db_upgraded
- widget_theysaidso_widget
- sc_do_activation_redirect
- fs_active_plugins
- fs_gdpr
- fs_debug_mode
- sc_load_client_defaults
- widget_recent-posts
- fs_accounts
- can_compress_scripts
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sprout-clients/views/messages/plaintext.php
- > /wp-content/plugins/sprout-clients/views/messages/html.php
- 66× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/sprout-clients/sprout-clients.php on line 16
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/sprout-clients/controllers/records/Records_Admin_Table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sprout-clients/views/admin/meta-boxes/engagements/history.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function sa_form_fields() in wp-content/plugins/sprout-clients/views/admin/meta-boxes/messages/preview-modal.php:4
- > PHP Fatal error
Uncaught Error: Class 'SC_Post_Type' not found in wp-content/plugins/sprout-clients/models/Notification.php:10
- > PHP Fatal error
require(): Failed opening required 'ABSPATHwp-admin/options-head.php' (include_path='.:/usr/share/php') in wp-content/plugins/sprout-clients/views/admin/settings.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sprout-clients/controllers/history/SI_History.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function sc_e() in wp-content/plugins/sprout-clients/views/admin/user/profile_fields.php:1
- > PHP Fatal error
Uncaught Error: Class 'SC_Controller' not found in wp-content/plugins/sprout-clients/controllers/clients/Clients.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/sprout-clients/views/admin/meta-boxes/clients/associated-users.php:62
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=sa_client
- > Network (severe)
wp-content/plugins/sprout-clients/resources/admin/plugins/redactor/redactor.css?ver=3.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=sa_client
- > Network (severe)
wp-content/plugins/sprout-clients/resources/admin/plugins/redactor/redactor.min.js?ver=3.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% 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 require attention:
- Screenshots: Add images for these screenshots: #1 (Easy to use admin page that any WordPress user is familiar with. Modular meta boxes allows you to set your preferred layout. Need more meta? ACF is fully supported.), #2 (All types and status are filterable, even in combination with each other. Support for Advanced Posts Manager allows for saved more advanced functionality.), #3 (Updating statues of your leads needs to be easy, future automation is going to help tremendously, otherwise a couple clicks with AJAX saving is speedy.)
sprout-clients/sprout-clients.php 77% from 13 tests
The main file in "Sprout Clients - CRM and Lead Management" v. 3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin48,760 lines of code in 242 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 8,285 | 17,794 | 36,987 |
JavaScript | 53 | 2,494 | 726 | 9,688 |
CSS | 16 | 175 | 76 | 1,488 |
HTML | 1 | 35 | 1 | 319 |
Markdown | 2 | 72 | 0 | 219 |
SVG | 1 | 0 | 0 | 32 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 68.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 5 | 7.14% |
▷ Concrete classes | 65 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 1,460 | |
▷ Static methods | 410 | 28.08% |
▷ Public methods | 1,094 | 74.93% |
▷ Protected methods | 31 | 2.12% |
▷ Private methods | 335 | 22.95% |
Functions | 155 | |
▷ Named functions | 149 | 96.13% |
▷ Anonymous functions | 6 | 3.87% |
Constants | 179 | |
▷ Global constants | 108 | 60.34% |
▷ Class constants | 71 | 39.66% |
▷ Public constants | 71 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 1.01MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/admin/img/invoice.png | 249.38KB | 62.25KB | ▼ 75.04% |
screenshot-1.png | 50.49KB | 50.51KB | 0.00% |
resources/admin/icons/sproutapps-banner.png | 84.22KB | 22.94KB | ▼ 72.77% |
screenshot-3.png | 73.80KB | 73.91KB | 0.00% |
controllers/updates/freemius-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |