Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/zencart-products/lib/query_factory.php+547
Methods with the same name as their class will not be constructors in a future version of PHP; queryFactoryMeta has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.48ms] Passed 4 tests
An overview of server-side resources used by ZenCart Products Display
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.42 ▼5.66 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.94 ▼3.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.07 ▲1.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.57 ▼10.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.66 ▲2.68 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
ZenCart Products Display: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.20 | 1.95 ▼0.07 | 42.45 ▲1.10 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.01 | 107.22 ▼1.09 | 39.51 ▼3.28 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.00 | 42.36 ▲5.24 | 35.98 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.05 ▼0.39 | 664.77 ▲17.59 | 52.46 ▼2.55 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.00 | 98.63 ▲3.51 | 42.81 ▲1.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/zencart-products/lib/query_factory.php
- > /wp-content/plugins/zencart-products/lib/functions_general.php
- > /wp-content/plugins/zencart-products/lib/define_queries.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zencart-products/views/zencart_products_admin.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zencart-products/lib/zencart_db_methods.php:10
- > PHP Notice
Undefined index: zenfpd_hidden in wp-content/plugins/zencart-products/views/zencart_products_admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zencart-products/lib/zencart_db_methods.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 93% from 29 tests
readme.txt Passed 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
5 plugin tags: zencart, featured products, new products, ecommerce, special products
zencart-products/zencart_options.php 85% from 13 tests
The main PHP file in "ZenCart Products Display" ver. 2.1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("zencart-products.php" instead of "zencart_options.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,518 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 447 | 583 | 2,518 |
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.39 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 117 | |
▷ Named functions | 117 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected