Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.94ms] Passed 4 tests
Analyzing server-side resources used by Markup by Attribute for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.11 ▲0.56 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.96 ▼0.32 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.62 ▼5.01 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.37 ▼10.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.73 ▲3.83 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Markup by Attribute for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.00 | 1.83 ▲0.31 | 42.68 ▲0.61 |
Dashboard /wp-admin | 2,198 ▲24 | 5.63 ▲0.06 | 86.24 ▲2.47 | 36.79 ▼7.61 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.02 | 32.99 ▼2.90 | 35.84 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.17 ▲0.03 | 659.84 ▼33.64 | 50.29 ▼12.36 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▼0.09 | 92.82 ▼8.13 | 41.02 ▼3.21 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: markup, variation, attribute, price, woocommerce
markup-by-attribute-for-woocommerce/markup-by-attribute-for-woocommerce.php 85% from 13 tests
The principal PHP file in "Markup by Attribute for WooCommerce" v. 3.11.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 221 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,604 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 8 | 344 | 344 | 1,383 |
PHP | 10 | 193 | 598 | 1,192 |
JavaScript | 2 | 3 | 4 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.38 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 56 | |
▷ Static methods | 9 | 16.07% |
▷ Public methods | 48 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 14.29% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 24 | |
▷ Global constants | 24 | 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
No PNG files were detected