Benchmarks
Plugin footprint 83% 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.08MB] [CPU: ▼14.98ms] Passed 4 tests
An overview of server-side resources used by Proof Factor - Social Proof Notifications for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 26.80 ▼15.41 |
Dashboard /wp-admin | 3.28 ▼0.02 | 31.20 ▼14.08 |
Posts /wp-admin/edit.php | 3.35 ▼0.01 | 37.54 ▼8.17 |
Add New Post /wp-admin/post-new.php | 5.53 ▼0.36 | 72.95 ▼22.24 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 32.25 ▼2.02 |
Proof Factor Settings /wp-admin/options-general.php?page=proof-factor | 3.26 | 30.72 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Proof Factor - Social Proof Notifications for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲55 | 13.93 ▼0.43 | 1.97 ▼0.03 | 38.17 ▼8.69 |
Dashboard /wp-admin | 2,214 ▲40 | 5.56 ▼0.01 | 83.89 ▼12.29 | 39.81 ▼2.96 |
Posts /wp-admin/edit.php | 2,126 ▲29 | 1.98 ▲0.01 | 36.77 ▼0.85 | 31.59 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 23.14 ▲0.06 | 594.87 ▼18.43 | 71.89 ▲1.40 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.20 ▲0.01 | 97.15 ▼5.04 | 42.37 ▼2.97 |
Proof Factor Settings /wp-admin/options-general.php?page=proof-factor | 849 | 1.99 | 22.30 | 65.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=proof-factor
- > Notice in wp-content/plugins/proof-factor-social-proof-notifications-for-woocommerce/admin/partials/proof-factor-admin-display.php+95
Trying to access array offset on value of type bool
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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/proof-factor-social-proof-notifications-for-woocommerce/public/partials/proof-factor-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/proof-factor-social-proof-notifications-for-woocommerce/admin/partials/proof-factor-admin-display.php:15
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
proof-factor-social-proof-notifications-for-woocommerce/proof-factor.php 85% from 13 tests
"Proof Factor - Social Proof Notifications for WooCommerce" version 1.0.13's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- 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
- Main file name: Name the main plugin file the same as the plugin slug ("proof-factor-social-proof-notifications-for-woocommerce.php" instead of "proof-factor.php")
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
Good job! No executable or dangerous file extensions detected640 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 166 | 553 | 512 |
CSS | 2 | 17 | 4 | 122 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 4 | 11.43% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin