Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼295.11ms] Passed 4 tests
A check of server-side resources used by Seesiu for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 60.94 ▲11.64 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.17 ▼0.18 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 35.71 ▼4.89 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 95.71 ▼1,172.58 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 22.99 ▼2.78 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Seesiu for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲52 | 15.64 ▼0.03 | 5.83 ▲0.03 | 2.17 ▼0.25 |
Dashboard /wp-admin | 2,906 ▲51 | 6.18 ▼0.14 | 117.14 ▼42.84 | 157.48 ▼12.40 |
Posts /wp-admin/edit.php | 2,700 ▲6 | 3.24 ▲0.00 | 65.39 ▼0.53 | 140.29 ▼7.25 |
Add New Post /wp-admin/post-new.php | 1,668 ▼22 | 16.08 ▼5.57 | 412.63 ▼49.48 | 155.05 ▼0.02 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.51 ▼0.00 | 143.28 ▼2.08 | 182.45 ▼6.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seesiu-for-woocommerce/includes/admin-menu/seesiu-settings.php:15
- > PHP Warning
Use of undefined constant SEFW_BMC_LIB_PATH - assumed 'SEFW_BMC_LIB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seesiu-for-woocommerce/lib/index.php on line 17
- > PHP Warning
opendir(SEFW_BMC_LIB_PATH/): failed to open dir: No such file or directory in wp-content/plugins/seesiu-for-woocommerce/lib/index.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/seesiu-for-woocommerce/seesiu.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: environment, greener, seesiu, shop, woo
seesiu-for-woocommerce/seesiu.php 92% from 13 tests
Analyzing the main PHP file in "Seesiu for WooCommerce" version 0.0.4
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seesiu-for-woocommerce.php" instead of "seesiu.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
No dangerous file extensions were detected3,131 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,486 |
PHP | 6 | 126 | 80 | 444 |
JavaScript | 1 | 13 | 1 | 180 |
CSS | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.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
No PNG files were detected