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.01MB] [CPU: ▼1.77ms] Passed 4 tests
This is a short check of server-side resources used by Attribute Dropdowns
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.26 ▼4.30 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.19 ▼3.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 55.38 ▲2.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 100.12 ▲8.04 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.27 ▼2.45 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Attribute Dropdowns
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.25 ▼0.39 | 1.81 ▲0.04 | 42.96 ▼0.43 |
Dashboard /wp-admin | 2,203 ▼6 | 5.80 ▲0.95 | 97.54 ▼7.73 | 36.53 ▼3.30 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▲0.03 | 35.06 ▼4.83 | 33.68 ▼8.00 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.18 ▼0.43 | 681.56 ▼125.56 | 51.38 ▼4.04 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▼0.01 | 105.73 ▼4.79 | 44.23 ▼3.10 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
5 plugin tags: search by attribute, product attributes, attribute dropdown selects, search widget, woocommerce product search
attribute-dropdowns/attribute-dropdowns.php Passed 13 tests
"Attribute Dropdowns" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
132 characters long description:
Displays multiple product attributes as a search box with drop-down selects. So that customer can search for products by attributes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected343 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 129 | 26 | 314 |
JavaScript | 1 | 26 | 0 | 28 |
CSS | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 27 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin