Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/dragon-ecommerce-reserve-without-online-payment/dragonecommercereservezyx987_importer.php+535
Undefined variable: U
Server metrics [RAM: ▲7.56MB] [CPU: ▼7.89ms] 75% from 4 tests
Analyzing server-side resources used by Dragon Ecommerce Reserve Plugin Without Online Payment for WordPress
Please take the time to fix the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 7.56MB on /wp-admin/options-general.php?page=Dragon Ecommerce Reserve)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.55 ▲8.09 | 59.68 ▲19.72 |
Dashboard /wp-admin | 11.57 ▲8.23 | 51.35 ▼8.20 |
Posts /wp-admin/edit.php | 11.57 ▲8.22 | 49.55 ▲5.56 |
Add New Post /wp-admin/post-new.php | 11.57 ▲5.69 | 50.09 ▼41.64 |
Media Library /wp-admin/upload.php | 11.57 ▲8.35 | 48.98 ▲12.72 |
Server storage [IO: ▲22.59MB] [DB: ▲0.20MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 81 new files
Database: 35 new tables, 6 new options
New tables |
---|
wp_dragonecommercereservezyx987_distance |
wp_dragonecommercereservezyx987_order_propertyvalue |
wp_dragonecommercereservezyx987_user_status |
wp_dragonecommercereservezyx987_product_propertyvalue_store |
wp_dragonecommercereservezyx987_setting |
wp_dragonecommercereservezyx987_product |
wp_dragonecommercereservezyx987_order_group |
wp_dragonecommercereservezyx987_product_store |
wp_dragonecommercereservezyx987_product_quantity_alert |
wp_dragonecommercereservezyx987_log |
... |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics 75% from 4 tests
Dragon Ecommerce Reserve Plugin Without Online Payment for WordPress: an overview of browser usage
It is time to focus on the following
- Nodes: It is recommended to reduce the number of DOM nodes under 25,000 (currently 34,340 on /wp-admin/options-general.php?page=Dragon Ecommerce Reserve)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.20 ▼1.38 | 1.94 ▲0.41 | 36.65 ▼1.22 |
Dashboard /wp-admin | 2,210 ▲21 | 4.87 ▼0.08 | 114.72 ▲8.22 | 40.94 ▼1.02 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▼0.01 | 38.24 ▲4.78 | 35.01 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.45 ▲5.96 | 696.77 ▼9.03 | 63.78 ▲10.32 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.04 | 94.67 ▼16.13 | 40.30 ▼7.17 |
Dragon Ecommerce Reserve /wp-admin/options-general.php?page=Dragon Ecommerce Reserve | 34,340 | 5.37 | 450.36 | 160.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.20MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The plugin did not uninstall successfully, leaving 35 tables in the database
- wp_dragonecommercereservezyx987_product_group
- wp_dragonecommercereservezyx987_processstatus
- wp_dragonecommercereservezyx987_setting
- wp_dragonecommercereservezyx987_product_propertyvalue_store
- wp_dragonecommercereservezyx987_order_group
- wp_dragonecommercereservezyx987_product_store
- wp_dragonecommercereservezyx987_department
- wp_dragonecommercereservezyx987_product_quantity_alert
- wp_dragonecommercereservezyx987_group_property
- wp_dragonecommercereservezyx987_chargetype
- ...
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
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
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function dragonecommercereservezyx987_showEcommerceLandingPage() in wp-content/plugins/dragon-ecommerce-reserve-without-online-payment/template-dragonecommercereserve.php:12
- > PHP Notice
Trying to get property 'use_mysqli' of non-object in wp-content/plugins/dragon-ecommerce-reserve-without-online-payment/dragonecommercereservezyx987_landingpage.php on line 23
- > PHP Notice
Trying to get property 'use_mysqli' of non-object in wp-content/plugins/dragon-ecommerce-reserve-without-online-payment/dragonecommercereservezyx987_admin.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dragon-ecommerce-reserve-without-online-payment/dragonecommercereservezyx987_importer.php:24
- > PHP Notice
Trying to get property 'use_mysqli' of non-object in wp-content/plugins/dragon-ecommerce-reserve-without-online-payment/dragonecommercereservezyx987_admin.php on line 5
- > PHP Notice
Trying to get property 'use_mysqli' of non-object in wp-content/plugins/dragon-ecommerce-reserve-without-online-payment/dragonecommercereservezyx987_landingpage.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dragon-ecommerce-reserve-without-online-payment/dragonecommercereservezyx987_admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dragon-ecommerce-reserve-without-online-payment/dragonecommercereservezyx987_landingpage.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 31 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Dragon Ecommerce Reserve
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires php: Version not formatted correctly
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #4, #5, #6, #7, #8, #9 in dragon-ecommerce-reserve-without-online-payment/assets to your readme.txt
dragon-ecommerce-reserve-without-online-payment/dragonecommercereservezyx987_importer.php 85% from 13 tests
The principal PHP file in "Dragon Ecommerce Reserve Plugin Without Online Payment for WordPress" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 256 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("dragon-ecommerce-reserve-without-online-payment.php" instead of "dragonecommercereservezyx987_importer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected90,099 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 20 | 8,431 | 421 | 38,891 |
PHP | 4 | 2,711 | 824 | 29,954 |
JavaScript | 11 | 3,514 | 1,639 | 11,892 |
SQL | 1 | 1,499 | 734 | 9,362 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 208 | |
▷ Named functions | 202 | 97.12% |
▷ Anonymous functions | 6 | 2.88% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) css/scroll_back.png | 0.10KB | 0.00KB | ▼ 100.00% |
(invalid) css/scroll_forward.png | 0.10KB | 0.00KB | ▼ 100.00% |
css/images/ui-icons_555555_256x240.png | 6.84KB | 4.18KB | ▼ 38.84% |
images/no_img.png | 2.45KB | 1.17KB | ▼ 52.05% |
images/no_img2.png | 7.66KB | 3.09KB | ▼ 59.67% |