Benchmarks
Plugin footprint 83% 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.16MB] [CPU: ▼7.15ms] Passed 4 tests
Analyzing server-side resources used by ZPC UPDATE PRODUCTS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 41.57 ▼6.21 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.79 ▼0.36 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.00 ▼6.47 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 84.82 ▼15.54 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.28 ▲2.87 |
ZPC Update Products /wp-admin/edit.php?post_type=product&page=zpc-updateproducts | 3.15 | 25.04 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for ZPC UPDATE PRODUCTS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.16 | 1.66 ▼0.47 | 43.91 ▲1.02 |
Dashboard /wp-admin | 2,209 ▲18 | 5.90 ▼0.03 | 112.14 ▼0.77 | 42.91 ▼1.41 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.01 | 35.40 ▼2.52 | 34.75 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.18 ▲0.07 | 661.10 ▼10.66 | 57.03 ▲4.46 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.07 | 97.51 ▼0.87 | 44.90 ▼0.95 |
ZPC Update Products /wp-admin/edit.php?post_type=product&page=zpc-updateproducts | 28 | 0.44 | 0.07 | 3.80 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/zpc-update-products/zpc-updateproducts.php on line 27
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zpc-update-products/zpc-updateproducts.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zpc-update-products/includes/functions.php:12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zpc-update-products/zpc-updateproducts.php on line 26
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/zpc-update-products/zpc-updateproducts.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zpc-update-products/zpc-updateproducts.php:28
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/zpc-update-products/zpc-updateproducts.php on line 26
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/upgrade.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/zpc-update-products/zpc-updateproducts.php on line 27
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=product&page=zpc-updateproducts
- > Network (severe)
wp-admin/edit.php?post_type=product&page=zpc-updateproducts - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: bulk edit, sale price, ecommerce, batch, woocommerce...
zpc-update-products/zpc-updateproducts.php 85% from 13 tests
The principal PHP file in "ZPC UPDATE PRODUCTS" v. 0.65 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("zpc-update-products.php" instead of "zpc-updateproducts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,239 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 151 | 152 | 1,076 |
CSS | 1 | 32 | 0 | 163 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 64.00 |
▷ Minimum class complexity | 64.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 13.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/undo.png | 0.39KB | 0.41KB | 0.00% |
images/accept.png | 0.28KB | 0.33KB | 0.00% |
images/close.png | 0.27KB | 0.30KB | 0.00% |
images/header-zittergie2.png | 140.42KB | 56.52KB | ▼ 59.75% |
images/edit.png | 6.63KB | 0.47KB | ▼ 92.85% |