Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.58MB] [CPU: ▼16.17ms] Passed 4 tests
This is a short check of server-side resources used by SocialToaster for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 51.42 ▲11.41 |
Dashboard /wp-admin | 3.41 ▲0.07 | 45.49 ▼12.95 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.39 ▲4.25 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.60 | 37.01 ▼55.35 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.04 ▼0.63 |
SocialToaster /wp-admin/options-general.php?page=socialtoaster | 3.28 | 31.42 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for SocialToaster for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.61 ▼0.76 | 5.99 ▲4.13 | 47.46 ▲7.77 |
Dashboard /wp-admin | 2,207 ▲19 | 5.84 ▲0.92 | 95.58 ▼10.86 | 38.58 ▼0.76 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 38.28 ▲1.65 | 34.87 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,520 ▼18 | 17.85 ▼5.19 | 599.51 ▲9.18 | 47.18 ▼14.91 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▼0.01 | 92.98 ▼3.95 | 42.52 ▼2.24 |
SocialToaster /wp-admin/options-general.php?page=socialtoaster | 887 | 2.18 | 23.24 | 28.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=socialtoaster
- > Notice in wp-content/plugins/socialtoaster-for-woocommerce/socialtoaster.php+225
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/socialtoaster-for-woocommerce/socialtoaster.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Contributors: The plugin contributors field is not present
- Requires php: Invalid plugin version format
socialtoaster-for-woocommerce/socialtoaster.php 92% from 13 tests
The entry point to "SocialToaster for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("socialtoaster-for-woocommerce.php" instead of "socialtoaster.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 detected558 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 118 | 28 | 519 |
JavaScript | 1 | 1 | 0 | 20 |
CSS | 1 | 5 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 30 | 88.24% |
▷ Anonymous functions | 4 | 11.76% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin