Benchmarks
Plugin footprint 83% from 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.00MB] [CPU: ▼5.10ms] Passed 4 tests
A check of server-side resources used by Shopkeeper Extender
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.70 ▼7.64 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.54 ▼8.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.19 ▼0.76 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.34 ▼3.62 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.71 ▲0.78 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shopkeeper Extender
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲43 | 14.32 ▼0.45 | 1.77 ▲0.07 | 38.65 ▼3.38 |
Dashboard /wp-admin | 2,213 ▲36 | 5.61 ▼0.07 | 94.96 ▼8.60 | 43.73 ▼3.04 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 1.96 ▲0.01 | 39.51 ▲0.40 | 38.75 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.14 ▲0.12 | 582.18 ▼69.74 | 53.78 ▼3.71 |
Media Library /wp-admin/upload.php | 1,415 ▲21 | 4.15 ▼0.05 | 97.12 ▼3.79 | 44.65 ▲2.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shopkeeper-extender/includes/custom-menu/class/class-sk-ext-navwalker-image.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shopkeeper-extender/includes/custom-menu/class/class-sk-ext-navwalker-image.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/shopkeeper-extender/includes/shortcodes/wb/categories-grid.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shopkeeper-extender/includes/helpers/helpers.php:45
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shopkeeper-extender/includes/customizer/repeater/class-sk-ext-repeater-control.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shopkeeper-extender/includes/shortcodes/wc/categories-grid.php:135
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shopkeeper-extender/includes/social-media/class-social-media.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shopkeeper-extender/includes/shortcodes/wp/slider.php:60
- > PHP Warning
include(): Failed opening 'ABSPATHWPINC/class-wp-customize-control.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shopkeeper-extender/includes/customizer/repeater/class-sk-ext-repeater-control.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/shopkeeper-extender/includes/shortcodes/wb/banner.php:5
- > 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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce, shopkeeper, wordpress, theme
shopkeeper-extender/shopkeeper-extender.php Passed 13 tests
"Shopkeeper Extender" version 3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
Extends the functionality of Shopkeeper with theme specific features.
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
Success! There were no dangerous files found in this plugin5,207 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 546 | 487 | 2,576 |
Sass | 7 | 223 | 5 | 1,314 |
CSS | 15 | 65 | 13 | 940 |
JavaScript | 10 | 96 | 51 | 354 |
JSON | 1 | 5 | 0 | 23 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 4 | 7.55% |
▷ Public methods | 39 | 73.58% |
▷ Protected methods | 8 | 15.09% |
▷ Private methods | 6 | 11.32% |
Functions | 34 | |
▷ Named functions | 20 | 58.82% |
▷ Anonymous functions | 14 | 41.18% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/updater/assets/images/shopkeeper-extender-256x256.png | 15.87KB | 7.57KB | ▼ 52.28% |
core/updater/assets/images/shopkeeper-banner-772x250.png | 3.96KB | 1.97KB | ▼ 50.10% |
core/updater/assets/images/shopkeeper-banner-1544x500.png | 9.16KB | 3.84KB | ▼ 58.08% |
core/updater/assets/images/shopkeeper-extender-128x128.png | 7.89KB | 3.88KB | ▼ 50.76% |