Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/content-shelf-shopping-cart/contentshelf-shopping-cart.php+19
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.95MB] [CPU: ▼50.63ms] Passed 4 tests
This is a short check of server-side resources used by Content Shelf Shopping Cart
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 3.99 ▼37.45 |
Dashboard /wp-admin | 2.06 ▼1.24 | 6.01 ▼40.54 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 6.40 ▼40.81 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 5.54 ▼83.71 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 6.28 ▼28.89 |
Plugin Settings /wp-admin/admin.php?page=contentshelf-store-settings | 2.06 | 5.38 |
Plugin Setup /wp-admin/admin.php?page=contentshelf | 2.06 | 6.09 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/content-shelf-shopping-cart/" and "wp-content/uploads/"
- (new file) wp-content/logs/.empty
Filesystem: 26 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-comments |
widget_contentshelf_search |
can_compress_scripts |
widget_contentshelf_cart_count |
widget_recent-posts |
contentshelf_store_page_id |
widget_contentshelf_language |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Content Shelf Shopping Cart
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲55 | 13.23 ▼1.17 | 1.72 ▼0.24 | 38.60 ▼6.01 |
Dashboard /wp-admin | 2,232 ▲44 | 5.85 ▲0.92 | 96.29 ▼17.76 | 79.33 ▲33.67 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 1.98 ▼0.03 | 34.95 ▼6.41 | 30.46 ▼7.92 |
Add New Post /wp-admin/post-new.php | 1,553 ▲34 | 23.24 ▲0.06 | 762.85 ▲132.79 | 60.89 ▲9.13 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.14 ▼0.05 | 109.42 ▲14.43 | 47.07 ▲5.60 |
Plugin Settings /wp-admin/admin.php?page=contentshelf-store-settings | 872 | 2.05 | 24.72 | 24.77 |
Plugin Setup /wp-admin/admin.php?page=contentshelf | 843 | 2.19 | 23.87 | 25.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/content-shelf-shopping-cart/contentshelf-shopping-cart.php+19
Constant WP_DEBUG already defined
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-posts
- widget_contentshelf_language
- widget_contentshelf_search
- widget_theysaidso_widget
- widget_contentshelf_cart_count
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=contentshelf
- > Notice in wp-content/plugins/content-shelf-shopping-cart/contentshelf-shopping-cart.php+19
Constant WP_DEBUG already defined
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=contentshelf
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/content-shelf-shopping-cart/templates/contentshelf-store-page-include.php
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/content-shelf-shopping-cart/includes/contentshelf-language-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/content-shelf-shopping-cart/templates/contentshelf-store-page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_contentshelf_store_id() in wp-content/plugins/content-shelf-shopping-cart/templates/contentshelf-language-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_contentshelf_store_id() in wp-content/plugins/content-shelf-shopping-cart/templates/contentshelf-store-include.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_contentshelf_store_id() in wp-content/plugins/content-shelf-shopping-cart/templates/contentshelf-categories-include.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_contentshelf_store_id() in wp-content/plugins/content-shelf-shopping-cart/templates/contentshelf-cart-count-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/content-shelf-shopping-cart/contentshelf-shopping-cart.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function get_contentshelf_store_id() in wp-content/plugins/content-shelf-shopping-cart/templates/contentshelf-language-include.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/content-shelf-shopping-cart/contentshelf-store-settings-form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_contentshelf_store_id() in wp-content/plugins/content-shelf-shopping-cart/templates/contentshelf-cart-count-include.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
content-shelf-shopping-cart/contentshelf-shopping-cart.php 92% from 13 tests
The principal PHP file in "Content Shelf Shopping Cart" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("content-shelf-shopping-cart.php" instead of "contentshelf-shopping-cart.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin850 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 165 | 291 | 741 |
CSS | 2 | 14 | 1 | 101 |
JavaScript | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cslogo.png | 3.63KB | 3.21KB | ▼ 11.56% |
images/icon-sidebar-active.png | 0.28KB | 0.44KB | 0.00% |
images/icon-sidebar-default.png | 0.30KB | 0.44KB | 0.00% |