Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.16ms] Passed 4 tests
A check of server-side resources used by Shift4Shop Online Store
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.76 ▼5.78 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.53 ▼2.30 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.48 ▲4.56 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.27 ▼1.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.96 ▲0.77 |
Shift4Shop /wp-admin/options-general.php?page=shift4shop | 3.19 | 28.08 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
shift4shop_currency |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_shift4shop_widget |
shift4shop_siteurl |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Shift4Shop Online Store
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.29 ▼1.09 | 1.69 ▼0.39 | 37.92 ▼13.46 |
Dashboard /wp-admin | 2,210 ▲22 | 4.83 ▼0.03 | 110.07 ▼9.25 | 41.53 ▼0.32 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.00 | 39.52 ▲4.67 | 34.76 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.31 ▲0.15 | 590.75 ▼29.45 | 53.47 ▼3.15 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.19 ▼0.07 | 96.48 ▼3.41 | 41.19 ▼0.67 |
Shift4Shop /wp-admin/options-general.php?page=shift4shop | 807 | 1.71 | 24.81 | 25.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- shift4shop_currency
- db_upgraded
- widget_shift4shop_widget
- widget_recent-comments
- theysaidso_admin_options
- shift4shop_siteurl
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=shift4shop
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=shift4shop
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/3dcart-wp-online-store/inc/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/3dcart-wp-online-store/inc/shortcode.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/3dcart-wp-online-store/inc/options.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
8 plugin tags: shift4shop for wordpress, e-commerce, ecommerce, shift4shop online products, shift4shop wordpress...
3dcart-wp-online-store/shift4shop.php 92% from 13 tests
"Shift4Shop Online Store" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("3dcart-wp-online-store.php" instead of "shift4shop.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,182 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 104 | 10 | 540 |
CSS | 2 | 8 | 5 | 474 |
PHP | 4 | 45 | 23 | 168 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
PNG images were not found in this plugin