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.33MB] [CPU: ▲1.99ms] Passed 4 tests
An overview of server-side resources used by ZPR Zeumic Products Database
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 38.87 ▼4.84 |
Dashboard /wp-admin | 3.70 ▲0.40 | 58.92 ▲10.41 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 59.93 ▲8.86 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 95.86 ▼6.48 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 49.57 ▲10.66 |
Fields /wp-admin/admin.php?page=zpr-fields | 3.53 | 48.75 |
Use ZPR /wp-admin/admin.php?page=zpr | 3.51 | 35.07 |
Settings /wp-admin/admin.php?page=zpr-settings | 3.53 | 41.12 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
zpr_version |
widget_recent-comments |
recovery_mode_email_last_sent |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ZPR Zeumic Products Database
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 14.35 ▼0.03 | 1.85 ▲0.25 | 42.02 ▲0.84 |
Dashboard /wp-admin | 2,246 ▲69 | 5.58 ▲0.01 | 84.79 ▼3.99 | 42.09 ▲1.86 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.02 ▼0.01 | 39.08 ▲4.46 | 38.82 ▲2.69 |
Add New Post /wp-admin/post-new.php | 1,570 ▲44 | 23.04 ▼0.65 | 660.56 ▼37.24 | 51.37 ▼3.30 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.20 ▲0.02 | 110.55 ▼5.11 | 47.67 ▲2.49 |
Fields /wp-admin/admin.php?page=zpr-fields | 1,375 | 2.32 | 29.98 | 31.06 |
Use ZPR /wp-admin/admin.php?page=zpr | 744 | 1.51 | 6.68 | 20.41 |
Settings /wp-admin/admin.php?page=zpr-settings | 1,036 | 2.17 | 26.61 | 27.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_recent-posts
- zpr_version
- theysaidso_admin_options
- db_upgraded
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
- > GET request to /wp-admin/admin.php?page=zpr
- > Notice in wp-content/plugins/zpr-zeumic-products-database/src/ProductUtil/general.php+40
Trying to get property 'term_id' of non-object
- > GET request to /wp-admin/admin.php?page=zpr
- > Notice in wp-content/plugins/zpr-zeumic-products-database/src/ProductUtil/general.php+41
Trying to get property 'name' of non-object
- > GET request to /wp-admin/admin.php?page=zpr
- > Error in wp-content/plugins/zpr-zeumic-products-database/src/ProductUtil/general.php+43
Uncaught Error: Object of class WP_Error could not be converted to string in wp-content/plugins/zpr-zeumic-products-database/src/ProductUtil/general.php:43
Stack trace:
#0 wp-content/plugins/zpr-zeumic-products-database/src/Plugin.php(821): Zeumic\ZPR\Core\get_all_categories()
#1 wp-content/plugins/zpr-zeumic-products-database/src/Plugin.php(881): Zeumic\ZPR\Core\Plugin->output_grid()
#2 wp-includes/shortcodes.php(395): Zeumic\ZPR\Core\Plugin->shortcode_list()
#3 [internal function]: do_shortcode_tag()
#4 wp-includes/shortcodes.php(235): preg_replace_callback()
#5 wp-content/plugins/zpr-zeumic-products-database/src/Plugin.php(390): do_shortcode()
#6 wp-includes/class-wp-hook.php(310): Zeumic\ZPR\Core\Plugin->output_page_use_zpr()
#7 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#8 wp-includes/plugin.php(517): WP_Hook->do_actio
SRP 50% 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
Please fix the following
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Zeumic\\ZSC\\Core\\Plugin' not found in wp-content/plugins/zpr-zeumic-products-database/zsc/src/PluginDistributable.php:7
- > PHP Fatal error
Uncaught Error: Class 'Zeumic\\ZSC\\Core\\Singleton' not found in wp-content/plugins/zpr-zeumic-products-database/zsc/src/Plugin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/zpr-zeumic-products-database/zsc/zsc-zeumic-suite-common.php:20
- > PHP Fatal error
Uncaught Error: Class 'Zeumic\\ZSC\\Core\\PluginDistributable' not found in wp-content/plugins/zpr-zeumic-products-database/zsc/src/PluginCore.php:4
- > PHP Fatal error
Uncaught Error: Class 'Zeumic\\ZSC\\Core\\Singleton' not found in wp-content/plugins/zpr-zeumic-products-database/zsc/src/PluginLoader.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/zpr-zeumic-products-database/zsc/zsc-zeumic-suite-common.php:20
- > PHP Fatal error
Uncaught Error: Class 'Zeumic\\ZSC\\Core\\PluginCore' not found in wp-content/plugins/zpr-zeumic-products-database/src/Plugin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function Zeumic\\ZSC\\Core\\trailingslashit() in wp-content/plugins/zpr-zeumic-products-database/zsc/load.php:31
- > PHP Fatal error
Uncaught Error: Class 'Zeumic\\ZSC\\Core\\Plugin' not found in wp-content/plugins/zpr-zeumic-products-database/zsc/src/Common.php:7
- > PHP Fatal error
Uncaught Error: Class 'Zeumic\\ZSC\\Core\\PluginDistributable' not found in wp-content/plugins/zpr-zeumic-products-database/zsc/src/PluginExt.php:4
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
zpr-zeumic-products-database/zpr-zeumic-products-database.php 85% from 13 tests
The principal PHP file in "ZPR Zeumic Products Database" v. 1.8.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 289 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.0.0")
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
Success! There were no dangerous files found in this plugin7,269 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 831 | 312 | 3,514 |
PHP | 19 | 491 | 1,040 | 2,806 |
CSS | 9 | 169 | 84 | 949 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 31.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 5 | 41.67% |
▷ Concrete classes | 7 | 58.33% |
▷ Final classes | 0 | 0.00% |
Methods | 175 | |
▷ Static methods | 5 | 2.86% |
▷ Public methods | 160 | 91.43% |
▷ Protected methods | 5 | 2.86% |
▷ Private methods | 10 | 5.71% |
Functions | 45 | |
▷ Named functions | 26 | 57.78% |
▷ Anonymous functions | 19 | 42.22% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
zsc/img/refresh.png | 14.89KB | 0.50KB | ▼ 96.65% |
zsc/vendor/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
zsc/vendor/jquery-ui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
zsc/vendor/jquery-ui/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
zsc/vendor/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |