Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.77MB] [CPU: ▼9.61ms] Passed 4 tests
Server-side resources used by Datafeedr Comparison Sets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.79 | 47.38 ▲1.74 |
Dashboard /wp-admin | 4.09 ▲0.74 | 65.29 ▼3.96 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 53.81 ▲5.34 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 92.99 ▼33.21 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 39.79 ▼3.02 |
null /wp-admin/admin.php?page=dfrcs_add_products | 3.92 | 37.56 |
Comparison Sets /wp-admin/admin.php?page=dfrcs_options | 3.91 | 54.51 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_dfrcs_compsets |
New WordPress options |
---|
dfrcs_options |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
dfrcs_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Datafeedr Comparison Sets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲163 | 13.79 ▼0.61 | 10.61 ▲8.69 | 72.19 ▲26.55 |
Dashboard /wp-admin | 2,197 ▲20 | 5.61 ▼0.06 | 112.97 ▼0.98 | 54.47 ▲5.30 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 2.01 ▲0.05 | 41.28 ▼5.05 | 36.76 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 22.97 ▼0.09 | 641.14 ▼58.85 | 50.40 ▼8.27 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.27 ▲0.06 | 100.34 ▼20.28 | 41.65 ▼9.37 |
null /wp-admin/admin.php?page=dfrcs_add_products | 751 | 1.99 | 23.10 | 10.19 |
Comparison Sets /wp-admin/admin.php?page=dfrcs_options | 1,475 | 1.68 | 48.07 | 57.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_dfrcs_compsets
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- dfrcs_options
- db_upgraded
- widget_recent-posts
- dfrcs_version
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/datafeedr-comparison-sets/includes/functions.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/datafeedr-comparison-sets/integrations/woocommerce.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function meets_min_num_product_requirement() on null in wp-content/plugins/datafeedr-comparison-sets/templates/default.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tested up to: Invalid plugin version format
datafeedr-comparison-sets/datafeedr-comparison-sets.php Passed 13 tests
"Datafeedr Comparison Sets" version 0.9.70's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Automatically create price comparison sets for your WooCommerce products or by using a shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,488 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 1,046 | 1,091 | 3,750 |
CSS | 2 | 103 | 15 | 533 |
JavaScript | 2 | 60 | 14 | 205 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 61.33 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 28.57% |
▷ Protected methods | 8 | 10.39% |
▷ Private methods | 47 | 61.04% |
Functions | 123 | |
▷ Named functions | 115 | 93.50% |
▷ Anonymous functions | 8 | 6.50% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin