Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.09ms] Passed 4 tests
Analyzing server-side resources used by Shop3D - 3D Print on Demand
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.25 ▼2.43 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.20 ▲0.95 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.71 ▼0.84 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.75 ▼14.03 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.34 ▲1.11 |
Shop3D /wp-admin/admin.php?page=shop-3d | 3.25 | 29.83 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Shop3D - 3D Print on Demand
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.89 ▼0.49 | 9.12 ▲7.33 | 44.10 ▼1.02 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.01 | 105.31 ▲0.13 | 37.81 ▼3.50 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.02 | 40.62 ▼0.22 | 34.81 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,527 ▼1 | 18.76 ▲0.59 | 590.06 ▼19.23 | 54.57 ▲6.71 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.19 ▼0.03 | 96.12 ▼10.39 | 43.87 ▼0.55 |
Shop3D /wp-admin/admin.php?page=shop-3d | 879 | 15.75 | 701.44 | 51.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/shop-3d/public/partials/shop3d-woocommerce-extension-public-display.php
- > /wp-content/plugins/shop-3d/admin/partials/shop3d-woocommerce-extension-admin-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/shop-3d/admin/shop3d_iframe.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=shop-3d
- > Console-api (warning) in unknown
https://app.shop3d.io/_nuxt/app.db44cc6.js 1:493772 "'state' should be a method that returns an object in store/platform/index.js"
- > GET request to /wp-admin/admin.php?page=shop-3d
- > Console-api (warning) in unknown
https://app.shop3d.io/_nuxt/app.db44cc6.js 1:493772 "'state' should be a method that returns an object in store/platform/releaseNotes.js"
- > GET request to /wp-admin/admin.php?page=shop-3d
- > Console-api (warning) in unknown
https://app.shop3d.io/_nuxt/app.db44cc6.js 1:493772 "'state' should be a method that returns an object in store/settings/subscriptions.js"
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
shop-3d/shop3d-woocommerce-extension.php 85% from 13 tests
The main PHP file in "Shop3D - 3D Print on Demand" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("shop-3d.php" instead of "shop3d-woocommerce-extension.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin188 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 121 | 531 | 182 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of 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.08 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin