Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/attribute-calculator/AttributeCalculator_Plugin.php+30
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.99ms] Passed 4 tests
This is a short check of server-side resources used by Attribute Calculator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 35.92 ▼6.49 |
Dashboard /wp-admin | 3.45 ▲0.15 | 47.22 ▲2.15 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 48.54 ▼0.62 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 84.08 ▼9.17 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 33.42 ▲0.31 |
Attribute Calculator /wp-admin/plugins.php?page=AttributeCalculator_PluginSettings | 3.34 | 30.06 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
AttributeCalculator_Plugin_multiplyBy |
AttributeCalculator_Plugin__installed |
widget_recent-posts |
widget_theysaidso_widget |
AttributeCalculator_Plugin_isEnabled |
AttributeCalculator_Plugin__version |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Attribute Calculator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.48 ▲0.10 | 1.69 ▼0.29 | 41.36 ▼8.05 |
Dashboard /wp-admin | 2,213 ▲28 | 4.86 ▼0.08 | 99.02 ▼10.75 | 37.88 ▼9.83 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 40.43 ▲5.89 | 35.68 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,545 ▲21 | 18.82 ▼4.46 | 604.64 ▼41.31 | 61.11 ▼5.84 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.36 ▲0.09 | 96.17 ▼1.73 | 41.88 ▼3.78 |
Attribute Calculator /wp-admin/plugins.php?page=AttributeCalculator_PluginSettings | 840 | 2.06 | 23.64 | 29.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 10 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- AttributeCalculator_Plugin_isEnabled
- can_compress_scripts
- theysaidso_admin_options
- AttributeCalculator_Plugin_multiplyBy
- AttributeCalculator_Plugin__version
- AttributeCalculator_Plugin__installed
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following
- 1× 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/attribute-calculator/attribute-calculator.php:79
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/plugins.php?page=AttributeCalculator_PluginSettings
- > Network (severe)
wp-content/plugins/attribute-calculator/css/admin-style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/plugins.php?page=AttributeCalculator_PluginSettings
- > Network (severe)
wp-content/plugins/attribute-calculator//js/calcadmin.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: length-calculator, length, product, woocommerce, calculator...
attribute-calculator/attribute-calculator.php Passed 13 tests
The primary PHP file in "Attribute Calculator" version 1.2 is used by WordPress to initiate all plugin functionality
81 characters long description:
Allows you to define an attribute to multiply your product's price in WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin668 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 195 | 509 | 652 |
JavaScript | 1 | 8 | 1 | 16 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 65.00% |
▷ Protected methods | 28 | 35.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin