Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.21ms] Passed 4 tests
An overview of server-side resources used by Shop Page Manager for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.13 ▼3.31 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.19 ▼1.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.87 ▼2.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.84 ▼9.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.74 ▲0.75 |
Status /wp-admin/admin.php?page=zamartz-status | 3.00 | 22.71 |
Settings /wp-admin/admin.php?page=zamartz-settings | 3.00 | 24.38 |
Dashboard /wp-admin/admin.php?page=zamartz-admin | 3.00 | 23.23 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Shop Page Manager for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.76 ▲0.38 | 1.87 ▲0.12 | 43.66 ▲2.25 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▼0.05 | 106.81 ▲6.53 | 37.24 ▼3.44 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 39.90 ▼0.21 | 34.51 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.19 ▲0.28 | 667.43 ▲81.21 | 55.80 ▼8.54 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.01 | 96.05 ▼11.41 | 40.66 ▼4.94 |
Status /wp-admin/admin.php?page=zamartz-status | 28 | 0.44 | 0.08 | 3.35 |
Settings /wp-admin/admin.php?page=zamartz-settings | 28 | 0.44 | 0.09 | 3.63 |
Dashboard /wp-admin/admin.php?page=zamartz-admin | 28 | 0.44 | 0.07 | 3.28 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/shop-page-manager-for-woocommerce/public/partials/wp-shop-page-manager-woo-public-display.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Trait 'Zamartz_General' not found in wp-content/plugins/shop-page-manager-for-woocommerce/admin/zamartz/network/class-zamartz-network-dashboard.php on line 12
- > PHP Fatal error
Trait 'Zamartz_General' not found in wp-content/plugins/shop-page-manager-for-woocommerce/admin/zamartz/class-zamartz-dashboard.php on line 12
- > PHP Fatal error
Trait 'Zamartz_General' not found in wp-content/plugins/shop-page-manager-for-woocommerce/public/class-wp-shop-page-manager-woo-front.php on line 22
- > PHP Fatal error
Trait 'Zamartz_General' not found in wp-content/plugins/shop-page-manager-for-woocommerce/admin/class-zamartz-admin-addons.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function Inpsyde\\plugin_dir_path() in wp-content/plugins/shop-page-manager-for-woocommerce/includes/object-hooks-remover.php:16
- > PHP Fatal error
Trait 'Zamartz_General' not found in wp-content/plugins/shop-page-manager-for-woocommerce/admin/zamartz/network/class-zamartz-network-settings.php on line 12
- > PHP Fatal error
Trait 'Zamartz_General' not found in wp-content/plugins/shop-page-manager-for-woocommerce/admin/class-zamartz-admin-status.php on line 22
- > PHP Fatal error
Trait 'Zamartz_General' not found in wp-content/plugins/shop-page-manager-for-woocommerce/admin/class-wp-shop-page-manager-woo-settings.php on line 20
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/shop-page-manager-for-woocommerce/admin/partials/wp-shop-page-manager-woo-admin-customizer-display.php:16
- > PHP Fatal error
Trait 'Zamartz_HTML_Template' not found in wp-content/plugins/shop-page-manager-for-woocommerce/admin/zamartz/helper/trait-zamartz-rss-methods.php on line 12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=zamartz-status
- > Network (severe)
wp-admin/admin.php?page=zamartz-status - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=zamartz-settings
- > Network (severe)
wp-admin/admin.php?page=zamartz-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=zamartz-admin
- > Network (severe)
wp-admin/admin.php?page=zamartz-admin - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: category, zamartz, shop, woocommerce, plp
shop-page-manager-for-woocommerce/wp-shop-page-manager-woo.php 77% from 13 tests
This is the main PHP file of "Shop Page Manager for WooCommerce" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 278 characters long)
- 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: Please rename the main PHP file in this plugin to the plugin slug ("shop-page-manager-for-woocommerce.php" instead of "wp-shop-page-manager-woo.php")
Code Analysis 97% from 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 plugin7,883 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 977 | 2,541 | 5,885 |
CSS | 4 | 267 | 58 | 1,212 |
JavaScript | 5 | 84 | 100 | 785 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 192)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 311.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 192.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 2 | 1.04% |
▷ Public methods | 184 | 95.34% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 4.66% |
Functions | 20 | |
▷ Named functions | 15 | 75.00% |
▷ Anonymous functions | 5 | 25.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/zamartz/assets/images/zamartz-icon-menu.png | 0.43KB | 0.50KB | 0.00% |
admin/images/dashboard-default.png | 9.37KB | 4.10KB | ▼ 56.26% |