Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼1.18MB] [CPU: ▼50.25ms] Passed 4 tests
A check of server-side resources used by Paid Memberships Pro - Infusionsoft Add On
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.66 | 15.50 ▼24.45 |
Dashboard /wp-admin | 2.84 ▼0.51 | 17.86 ▼47.14 |
Posts /wp-admin/edit.php | 2.84 ▼0.52 | 18.55 ▼37.23 |
Add New Post /wp-admin/post-new.php | 2.84 ▼3.05 | 17.64 ▼92.16 |
Media Library /wp-admin/upload.php | 2.84 ▼0.39 | 17.44 ▼18.25 |
PMPro Infusionsoft /wp-admin/options-general.php?page=pmprois_options | 2.84 | 18.95 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Paid Memberships Pro - Infusionsoft Add On
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲118 | 13.32 ▼0.99 | 1.86 ▼0.04 | 42.43 ▼0.51 |
Dashboard /wp-admin | 2,227 ▲39 | 4.82 ▼0.07 | 100.12 ▼8.36 | 44.96 ▲3.89 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 1.98 ▼0.07 | 34.72 ▼6.49 | 41.05 ▲5.41 |
Add New Post /wp-admin/post-new.php | 1,383 ▼136 | 20.82 ▼2.43 | 600.85 ▼60.55 | 64.93 ▲11.69 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.28 ▲0.06 | 100.60 ▼8.46 | 46.82 ▼3.75 |
PMPro Infusionsoft /wp-admin/options-general.php?page=pmprois_options | 864 | 1.84 | 25.57 | 34.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-includes/class-wpdb.php+789
Undefined property: wpdb::$pmpro_membership_levels
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pmprois_options
- > Notice in wp-includes/class-wpdb.php+789
Undefined property: wpdb::$pmpro_membership_levels
- > GET request to /wp-admin/options-general.php?page=pmprois_options
- > Notice in wp-content/plugins/pmpro-infusionsoft/pmpro-infusionsoft.php+582
Trying to access array offset on value of type bool
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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pmpro-infusionsoft/includes/conn.cfg.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-infusionsoft/pmpro-infusionsoft.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Requires at least: Invalid version format
- Screenshots: Screenshot #1 (Settings screen to add Infusionsoft Username/ID and API Key; Assign All Users Tags and per-Membership Level Tags.) image missing
pmpro-infusionsoft/pmpro-infusionsoft.php Passed 13 tests
"Paid Memberships Pro - Infusionsoft Add On" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Sync your WordPress users and members with Infusionsoft contacts.
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
There were no executable files found in this plugin4,138 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 543 | 1,289 | 4,134 |
JavaScript | 1 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 119 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 119 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin