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.12MB] [CPU: ▼1.17ms] Passed 4 tests
Analyzing server-side resources used by FOMO & Social Proof Notifications by TrustPulse - Best WordPress FOMO Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.86 ▼4.38 |
Dashboard /wp-admin | 3.45 ▲0.15 | 51.65 ▲3.45 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 49.94 ▼1.01 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 90.08 ▼2.72 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 42.07 ▲7.64 |
Server storage [IO: ▲2.83MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
_amn_tp_last_checked |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by FOMO & Social Proof Notifications by TrustPulse - Best WordPress FOMO Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲40 | 14.11 ▼0.29 | 1.69 ▼0.29 | 40.20 ▼1.73 |
Dashboard /wp-admin | 2,229 ▲49 | 5.59 ▲0.01 | 84.88 ▼6.48 | 36.71 ▼0.69 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 2.00 ▼0.01 | 37.03 ▲0.07 | 30.89 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,546 ▲9 | 18.11 ▲0.09 | 629.42 ▼8.81 | 101.23 ▼0.12 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.21 ▼0.09 | 101.43 ▲0.74 | 43.39 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- _amn_tp_last_checked
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/trustpulse-api/views/partials/trustpulse-woocommerce-webhooks.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/trustpulse-api/views/partials/trustpulse-woocommerce-webhooks.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function trustpulse_dir_uri() in wp-content/plugins/trustpulse-api/views/partials/trustpulse-works-on.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/trustpulse-api/views/trustpulse-settings-page.php:2
- > PHP Notice
Undefined variable: campaign_webhooks in wp-content/plugins/trustpulse-api/views/partials/trustpulse-woocommerce-webhooks.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/trustpulse-api/views/trustpulse-woocommerce-verification-page.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: fomo, ecommerce, membership, woocommerce, social proof
trustpulse-api/trustpulse.php 92% from 13 tests
"FOMO & Social Proof Notifications by TrustPulse - Best WordPress FOMO Plugin" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("trustpulse-api.php" instead of "trustpulse.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,366 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 169 | 555 | 899 |
SVG | 6 | 0 | 1 | 465 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 27.20 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 5 | 11.63% |
▷ Public methods | 42 | 97.67% |
▷ Protected methods | 1 | 2.33% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.19MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/video-background.png | 19.43KB | 9.70KB | ▼ 50.07% |
assets/images/ninja-forms.png | 26.39KB | 9.75KB | ▼ 63.04% |
assets/images/BigCommerce-logo.png | 27.48KB | 12.95KB | ▼ 52.89% |
assets/images/logo-om.png | 23.15KB | 8.65KB | ▼ 62.62% |
assets/images/wpforms.png | 7.49KB | 7.83KB | 0.00% |