Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.85ms] Passed 4 tests
This is a short check of server-side resources used by Woo Variations Style Buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.77 ▼0.55 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.31 ▼11.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.93 ▲0.92 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.48 ▼16.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.88 ▲2.94 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Variations Style Buttons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.33 ▼1.26 | 2.10 ▲0.31 | 41.64 ▲0.09 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼0.02 | 102.12 ▼2.32 | 38.64 ▲1.74 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.06 ▲0.05 | 37.26 ▲0.46 | 34.74 ▲1.87 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.33 ▲5.87 | 667.05 ▼30.45 | 60.70 ▲16.95 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.21 ▼0.01 | 98.02 ▼4.08 | 41.84 ▼3.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- 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 everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
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 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Previews), #2 (Settings Page), #3 (Adding a button in a single product page)
- Tags: There are too many tags (15 tag instead of maximum 10)
woo-variations-style-buttons/woo-variations-style-buttons.php Passed 13 tests
The principal PHP file in "Woo Variations Style Buttons" v. 1.4 is loaded by WordPress automatically on each request
125 characters long description:
Variations Link, Color, Images, Radio, Select Buttons for WooCommerce. product variations using buttons instead of dropdowns.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,791 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 235 | 62 | 999 |
JavaScript | 2 | 104 | 98 | 513 |
CSS | 2 | 8 | 4 | 166 |
PO File | 1 | 27 | 27 | 80 |
SVG | 1 | 0 | 1 | 33 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 23.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.47MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/checkmark.png | 0.49KB | 0.59KB | 0.00% |
screenshot-1.png | 393.21KB | 93.06KB | ▼ 76.33% |
screenshot-3.png | 20.50KB | 10.10KB | ▼ 50.76% |
screenshot-2.png | 68.06KB | 36.84KB | ▼ 45.87% |