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.67MB] [CPU: ▼19.30ms] Passed 4 tests
An overview of server-side resources used by StoryBook - Shopify Blog Connector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.02 ▼5.81 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.00 ▼1.53 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 41.67 ▼11.28 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.73 | 36.39 ▼58.58 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.32 ▲1.03 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by StoryBook - Shopify Blog Connector
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲32 | 14.23 ▼0.36 | 2.07 ▲0.20 | 43.09 ▼0.18 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▼0.11 | 81.72 ▼7.56 | 75.76 ▲28.92 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.01 ▼0.01 | 35.56 ▼0.82 | 34.45 ▼2.29 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.38 ▲0.30 | 758.39 ▲73.99 | 49.32 ▼2.78 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.25 ▲0.03 | 114.26 ▼0.87 | 75.31 ▲26.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/storybook-shopify-blog-connector/co/eblocks/core/sidebars/widgets/stb_advertisement.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/storybook-shopify-blog-connector/co/eblocks/core/sidebars/widgets/stb_w_popular_posts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/storybook-shopify-blog-connector/co/eblocks/core/sidebars/widgets/stb_w_blog_categories.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/storybook-shopify-blog-connector/co/eblocks/core/sidebars/widgets/stb_w_blog_tags.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/storybook-shopify-blog-connector/co/eblocks/core/sidebars/widgets/stb_w_recent_posts.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: shopify blog, wordpress to shopify, shopify, ecommerce
storybook-shopify-blog-connector/story-book-connector.php 92% from 13 tests
Analyzing the main PHP file in "StoryBook - Shopify Blog Connector" version 1.1
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("storybook-shopify-blog-connector.php" instead of "story-book-connector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,359 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 184 | 40 | 1,312 |
JavaScript | 1 | 5 | 0 | 32 |
CSS | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 19 | 24.05% |
▷ Public methods | 63 | 79.75% |
▷ Protected methods | 2 | 2.53% |
▷ Private methods | 14 | 17.72% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
co/eblocks/assets/img/wp-admin-icon.png | 3.35KB | 0.74KB | ▼ 77.96% |