Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.52ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Darwin Pricing Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.33 ▼3.90 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.28 ▲0.82 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.31 ▼0.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.71 ▼4.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.50 ▼0.71 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Darwin Pricing Integration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 13.92 ▼0.36 | 1.72 ▲0.05 | 47.41 ▲2.78 |
Dashboard /wp-admin | 2,198 ▲21 | 5.55 ▼0.10 | 83.19 ▼8.05 | 35.32 ▼4.99 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▼0.03 | 36.89 ▲0.57 | 33.48 ▲2.19 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.04 ▼0.07 | 599.10 ▼40.61 | 54.35 ▼32.64 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.17 ▼0.04 | 97.17 ▼5.64 | 43.76 ▼4.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/woocommerce-darwin-pricing-integration/includes/class-wc-darwin-pricing.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: dynamic pricing, woocommerce, widget, coupon, darwin pricing...
woocommerce-darwin-pricing-integration/woocommerce-darwin-pricing-integration.php 77% from 13 tests
This is the main PHP file of "WooCommerce Darwin Pricing Integration" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
- Domain Path: Prefix the domain path with a forward slash character ("/languages/")
- Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
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
Everything looks great! No dangerous files found in this plugin522 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 65 | 200 | 429 |
JavaScript | 1 | 3 | 6 | 63 |
JSON | 1 | 0 | 0 | 21 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 34 | 70.83% |
▷ Protected methods | 13 | 27.08% |
▷ Private methods | 1 | 2.08% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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