Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼13.67ms] Passed 4 tests
This is a short check of server-side resources used by Datafeedr Product Sets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 37.80 ▼4.18 |
Dashboard /wp-admin | 3.54 ▲0.19 | 33.76 ▼25.27 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 39.39 ▼6.98 |
Add New Post /wp-admin/post-new.php | 5.78 ▼0.10 | 74.22 ▼18.25 |
Media Library /wp-admin/upload.php | 3.54 ▲0.32 | 35.39 ▲3.95 |
All Product Sets /wp-admin/edit.php?post_type=datafeedr-productset | 3.59 | 35.28 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options |
---|
dfrps_configuration |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
dfrps_version |
Browser metrics Passed 4 tests
A check of browser resources used by Datafeedr Product Sets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲36 | 14.67 ▲0.57 | 1.79 ▼0.09 | 42.14 ▲3.57 |
Dashboard /wp-admin | 2,225 ▲45 | 5.64 ▲0.00 | 93.99 ▼5.89 | 41.14 ▼2.28 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.16 ▲0.20 | 39.01 ▲3.20 | 36.14 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,556 ▲27 | 23.14 ▲0.00 | 677.73 ▲18.92 | 55.41 ▼3.32 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.21 ▲0.02 | 99.01 ▼2.08 | 44.85 ▲1.21 |
All Product Sets /wp-admin/edit.php?post_type=datafeedr-productset | 1,093 | 1.97 | 31.59 | 32.23 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- dfrps_configuration
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- dfrps_version
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=datafeedr-productset
- > Notice in wp-content/plugins/datafeedr-product-sets/functions/helper.php+634
Undefined index: default_cpt
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tested up to: Invalid version format
datafeedr-product-sets/datafeedr-product-sets.php 92% from 13 tests
The primary PHP file in "Datafeedr Product Sets" version 1.3.22 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 227 characters long)
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
Success! There were no dangerous files found in this plugin6,306 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 1,436 | 1,854 | 5,432 |
CSS | 2 | 147 | 31 | 820 |
JavaScript | 1 | 8 | 2 | 54 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 30.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 165 | |
▷ Static methods | 1 | 0.61% |
▷ Public methods | 155 | 93.94% |
▷ Protected methods | 8 | 4.85% |
▷ Private methods | 2 | 1.21% |
Functions | 95 | |
▷ Named functions | 94 | 98.95% |
▷ Anonymous functions | 1 | 1.05% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/plus.png | 0.38KB | 0.26KB | ▼ 31.01% |
images/icons/minus.png | 0.32KB | 0.24KB | ▼ 25.08% |
images/icons/product-label.png | 0.21KB | 0.13KB | ▼ 35.07% |
images/icons/coupon-label.png | 0.20KB | 0.13KB | ▼ 36.71% |
images/icons/productrecord.png | 39.21KB | 18.08KB | ▼ 53.90% |