Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.85MB] [CPU: ▼39.73ms] Passed 4 tests
An overview of server-side resources used by e-shopsカート2
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 41.02 ▼2.19 |
Dashboard /wp-admin | 3.11 ▼0.24 | 26.42 ▼42.39 |
Posts /wp-admin/edit.php | 3.11 ▼0.25 | 25.61 ▼27.18 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.78 | 25.94 ▼77.97 |
Media Library /wp-admin/upload.php | 3.11 ▼0.12 | 26.98 ▼11.39 |
商品一覧 /wp-admin/admin.php?page=ec2_item_list | 3.11 | 22.40 |
テンプレート一覧 /wp-admin/admin.php?page=ec2_tmpl_list | 3.11 | 25.19 |
設定 /wp-admin/admin.php?page=ec2_settings | 3.11 | 27.81 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_eshops_cart2_tmpl |
wp_eshops_cart2_preview |
wp_eshops_cart2_items |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for e-shopsカート2
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 13.21 ▼1.55 | 1.70 ▲0.04 | 46.23 ▲2.34 |
Dashboard /wp-admin | 2,238 ▲35 | 4.94 ▼0.97 | 101.84 ▼0.38 | 78.36 ▲31.65 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.06 ▲0.02 | 34.91 ▼7.43 | 40.28 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,747 ▲202 | 21.00 ▼2.19 | 661.20 ▼31.39 | 110.81 ▲40.62 |
Media Library /wp-admin/upload.php | 1,429 ▲35 | 4.29 ▲0.03 | 112.81 ▲10.29 | 96.70 ▲53.12 |
商品一覧 /wp-admin/admin.php?page=ec2_item_list | 707 | 1.36 | 7.35 | 53.26 |
テンプレート一覧 /wp-admin/admin.php?page=ec2_tmpl_list | 868 | 2.03 | 25.57 | 50.35 |
設定 /wp-admin/admin.php?page=ec2_settings | 875 | 2.07 | 25.47 | 47.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_eshops_cart2_tmpl
- wp_eshops_cart2_preview
- wp_eshops_cart2_items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ec2_settings
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
SRP 50% 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
Please fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/e-shops-cart2/eshops-cart2.php on line 93
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/e-shops-cart2/eshops-cart2.php on line 93
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/e-shops-cart2/widget/eshops-cart2-widget.php:5
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/upgrade.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/e-shops-cart2/eshops-cart2.php on line 93
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/e-shops-cart2/widget/eshops_cart2_new_custom.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-shops-cart2/eshops-cart2.php:100
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (商品検索機能も充実。) image not found
e-shops-cart2/eshops-cart2.php 77% from 13 tests
The entry point to "e-shopsカート2" version 1.0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("e-shops-cart2.php" instead of "eshops-cart2.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,682 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 742 | 1,102 | 3,360 |
JavaScript | 2 | 25 | 6 | 247 |
CSS | 1 | 18 | 0 | 75 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 60.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 1 | 14.29% |
Methods | 168 | |
▷ Static methods | 16 | 9.52% |
▷ Public methods | 132 | 78.57% |
▷ Protected methods | 29 | 17.26% |
▷ Private methods | 7 | 4.17% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 3 | 9.38% |
▷ Class constants | 29 | 90.62% |
▷ Public constants | 29 | 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
2 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 140.87KB | 39.81KB | ▼ 71.74% |
eshops-cart2.png | 0.48KB | 0.36KB | ▼ 26.17% |