Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.05ms] Passed 4 tests
Analyzing server-side resources used by WordPress abandoned cart recovery and email marketing for Paid Memberships Pro by Recapture
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.20 ▲3.52 |
Dashboard /wp-admin | 3.52 ▲0.21 | 43.69 ▼10.46 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.29 ▼2.96 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 92.11 ▼6.31 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 48.61 ▲13.46 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
WordPress abandoned cart recovery and email marketing for Paid Memberships Pro by Recapture: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 14.80 ▲0.56 | 1.63 ▼0.43 | 38.67 ▼11.77 |
Dashboard /wp-admin | 2,212 ▲21 | 5.84 ▼0.07 | 100.73 ▼3.81 | 39.02 ▼7.53 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.06 ▲0.03 | 40.33 ▲2.01 | 36.50 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.10 ▲5.48 | 629.85 ▼48.05 | 62.49 ▲12.46 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.29 ▲0.04 | 96.09 ▼7.55 | 41.98 ▼1.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/recapture-for-paid-memberships-pro/templates/reviews.php:3
- > PHP Fatal error
Uncaught Error: Class 'RecaptureBasePlatform' not found in wp-content/plugins/recapture-for-paid-memberships-pro/platforms/class-paid-memberships-pro.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recapture-for-paid-memberships-pro/recapture.php:661
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Experience the famous 5-minute install with Recapture), #2 (Configure your site settings once you're connected), #3 (Activate your campaigns in Recapture to start increasing sales!)
recapture-for-paid-memberships-pro/recapture.php 85% from 13 tests
The main PHP script in "WordPress abandoned cart recovery and email marketing for Paid Memberships Pro by Recapture" version 1.0.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("recapture-for-paid-memberships-pro.php" instead of "recapture.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,671 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 229 | 118 | 1,115 |
JavaScript | 5 | 62 | 39 | 317 |
CSS | 2 | 11 | 2 | 180 |
PO File | 1 | 15 | 17 | 59 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 43 | 50.00% |
▷ Public methods | 83 | 96.51% |
▷ Protected methods | 1 | 1.16% |
▷ Private methods | 2 | 2.33% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/recapture.png | 1.31KB | 0.32KB | ▼ 75.47% |