Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.64MB] [CPU: ▼22.87ms] Passed 4 tests
A check of server-side resources used by WP Social Proof
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.82 ▼8.70 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.49 ▼12.52 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 50.10 ▲0.75 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.67 | 38.30 ▼70.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.43 ▼0.00 |
String Editor /wp-admin/admin.php?page=wp_social_proof_string_editor | 3.27 | 31.53 |
WP Social Proof /wp-admin/admin.php?page=wp_social_proof | 3.29 | 34.52 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Social Proof
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲206 | 13.91 ▼0.82 | 11.95 ▲9.99 | 37.46 ▼3.93 |
Dashboard /wp-admin | 2,221 ▲46 | 5.60 ▼0.03 | 83.18 ▼28.21 | 68.82 ▲28.27 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.01 ▼0.03 | 38.60 ▼4.00 | 40.59 ▲7.87 |
Add New Post /wp-admin/post-new.php | 1,565 ▲28 | 23.24 ▲5.16 | 771.17 ▲158.69 | 55.56 ▼33.23 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.18 ▼0.06 | 97.17 ▼7.49 | 68.24 ▲20.37 |
String Editor /wp-admin/admin.php?page=wp_social_proof_string_editor | 917 | 2.15 | 23.03 | 28.69 |
WP Social Proof /wp-admin/admin.php?page=wp_social_proof | 1,257 | 2.06 | 25.85 | 43.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-social-proof/html/admin/page.string-editor.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPSocialProof\\Datasource' not found in wp-content/plugins/wp-social-proof/classes/integrations/class.woo-data.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-social-proof/html/upsell/settings-appearance-bottom.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function WPSocialProof\\plugin_dir_path() in wp-content/plugins/wp-social-proof/wp-social-proof.php:20
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-social-proof/html/templates/standard.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-social-proof/html/upsell/settings-general-bottom.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPSocialProof\\Datasource' not found in wp-content/plugins/wp-social-proof/classes/integrations/class.user-data.php:5
- > PHP Fatal error
require_once(): Failed opening required 'WPSP_DIRclasses/class.upsell-core.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-social-proof/classes/class.core.php on line 5
- > PHP Warning
require_once(WPSP_DIRclasses/class.content-template.php): failed to open stream: No such file or directory in wp-content/plugins/wp-social-proof/classes/class.content-manager.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-social-proof/html/upsell/settings-container-bottom.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: product promotions, registration notifications, social proof, sales notifications, woocommerce
wp-social-proof/wp-social-proof.php 85% from 13 tests
The main file in "WP Social Proof" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- 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
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,372 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 223 | 35 | 982 |
CSS | 3 | 54 | 2 | 267 |
JavaScript | 2 | 30 | 8 | 123 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 87.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 12.31% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/upsell/feature_user_info.png | 13.27KB | 6.60KB | ▼ 50.26% |
assets/images/blue.png | 5.49KB | 1.96KB | ▼ 64.34% |
assets/images/upsell/feature_on_sale.png | 9.86KB | 5.63KB | ▼ 42.90% |
assets/images/red.png | 5.37KB | 1.90KB | ▼ 64.73% |
assets/images/standard_icon.png | 1.94KB | 1.03KB | ▼ 46.70% |