Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.68ms] Passed 4 tests
An overview of server-side resources used by Vietnam Social Proof Toaster
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.03 | 40.19 ▼1.04 |
Dashboard /wp-admin | 3.38 ▲0.03 | 47.34 ▼1.89 |
Posts /wp-admin/edit.php | 3.49 ▲0.10 | 49.26 ▼3.91 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 85.35 ▼19.88 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 41.02 ▲3.14 |
About - Social Proof Toaster /wp-admin/index.php?page=haosf-proof-toaster-about | 3.27 | 32.14 |
Vietnam Social Proof Toaster /wp-admin/options-general.php?page=haosf-proof-toaster | 3.27 | 29.56 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Vietnam Social Proof Toaster
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.35 ▼0.05 | 1.97 ▲0.28 | 41.18 ▼4.67 |
Dashboard /wp-admin | 2,206 ▲29 | 5.62 ▼0.04 | 88.27 ▼3.60 | 39.13 ▼0.39 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.03 ▲0.05 | 38.21 ▼2.59 | 34.50 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 22.94 ▼0.07 | 684.05 ▲7.18 | 62.86 ▲6.27 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.14 ▼0.05 | 110.09 ▼4.36 | 46.32 ▼3.65 |
About - Social Proof Toaster /wp-admin/index.php?page=haosf-proof-toaster-about | 821 | 2.14 | 26.27 | 59.69 |
Vietnam Social Proof Toaster /wp-admin/options-general.php?page=haosf-proof-toaster | 830 | 2.03 | 30.40 | 29.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Haosf_Social_Proof_Toaster\\Toast' not found in wp-content/plugins/vietnam-social-proof-toaster/includes/class-product-social-proof-toast.php:5
- > PHP Fatal error
Uncaught Error: Class 'Haosf_Social_Proof_Toaster\\Product_Social_Proof_Toast' not found in wp-content/plugins/vietnam-social-proof-toaster/includes/class-order-count-product-social-proof-toast.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/vietnam-social-proof-toaster/includes/pages/about.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/vietnam-social-proof-toaster/includes/pages/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/vietnam-social-proof-toaster/hao-social-proof-toaster.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Contributors: Plugin contributors field is missing
vietnam-social-proof-toaster/hao-social-proof-toaster.php 85% from 13 tests
The entry point to "Vietnam Social Proof Toaster" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("vietnam-social-proof-toaster.php" instead of "hao-social-proof-toaster.php")
- 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
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 detected765 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 79 | 63 | 375 |
Sass | 1 | 16 | 0 | 166 |
CSS | 1 | 13 | 0 | 162 |
PO File | 1 | 16 | 17 | 62 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 6 | 17.65% |
▷ Public methods | 20 | 58.82% |
▷ Protected methods | 12 | 35.29% |
▷ Private methods | 2 | 5.88% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-1.png | 98.36KB | 34.36KB | ▼ 65.07% |