Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/altoshift-woocommerce/AltoshiftWoocommercePlugin.php+178
array_key_exists() expects parameter 2 to be array, bool given
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.80ms] Passed 4 tests
Analyzing server-side resources used by Altoshift For Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.81 ▼37.93 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.58 ▼45.72 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.82 ▼40.60 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.31 ▼86.95 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.94 ▼28.20 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Altoshift For Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.67 ▼0.79 | 1.65 ▼0.24 | 40.09 ▼1.70 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼0.03 | 96.66 ▼5.73 | 36.42 ▼7.79 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.07 | 39.07 ▲3.33 | 35.94 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 23.03 ▼0.07 | 645.55 ▼23.53 | 59.03 ▲1.13 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.23 ▲0.06 | 102.52 ▲0.24 | 48.22 ▲2.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/altoshift-woocommerce/AltoshiftWoocommercePlugin.php+178
array_key_exists() expects parameter 2 to be array, bool given
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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
Everything seems fine, however this is by no means 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 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 get_option() in wp-content/plugins/altoshift-woocommerce/includes/views/admin/settings/feed-url.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
altoshift-woocommerce/AltoshiftWoocommercePlugin.php 92% from 13 tests
The entry point to "Altoshift For Woocommerce" version 1.0.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("altoshift-woocommerce.php" instead of "AltoshiftWoocommercePlugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected629 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 145 | 14 | 629 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 10 | 26.32% |
▷ Public methods | 26 | 68.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 31.58% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin