Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.92ms] Passed 4 tests
This is a short check of server-side resources used by Product Configurations Table
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.12 ▼7.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 53.66 ▲6.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.87 ▼2.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.79 ▼15.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.06 ▼2.22 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Configurations Table
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.46 ▲0.08 | 1.69 ▼0.27 | 40.65 ▼1.58 |
Dashboard /wp-admin | 2,209 ▲21 | 4.89 ▼0.01 | 102.80 ▲0.37 | 38.43 ▼2.19 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.05 | 37.43 ▲2.31 | 32.19 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.66 ▼5.49 | 667.51 ▼0.15 | 50.45 ▼6.76 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.03 | 97.04 ▼10.95 | 43.08 ▼3.08 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant \xc2\xa0exit - assumed '\xc2\xa0exit' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-configurations-table/Model/Option/CsvImportHandler.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: product options, configurations table
product-configurations-table/product-configurations-table.php Passed 13 tests
The main PHP script in "Product Configurations Table" version 1.0.0 is automatically included on every request by WordPress
59 characters long description:
Displays product options as a table with selectable values.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin978 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 303 | 23 | 817 |
JavaScript | 2 | 50 | 0 | 133 |
CSS | 2 | 16 | 0 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 73 | |
▷ Static methods | 4 | 5.48% |
▷ Public methods | 69 | 94.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.48% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/adminhtml/web/product/edit/field_options.png | 62.45KB | 17.38KB | ▼ 72.18% |