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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.68ms] Passed 4 tests
This is a short check of server-side resources used by Price Offers for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.22 ▼1.58 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.65 ▼3.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.21 ▲1.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.42 ▼16.32 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.69 ▼1.11 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Price Offers for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.74 ▲0.61 | 1.79 ▼0.06 | 43.45 ▲1.74 |
Dashboard /wp-admin | 2,195 ▲17 | 5.58 ▼0.14 | 94.74 ▼17.84 | 40.35 ▼2.59 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▲0.00 | 41.26 ▲1.41 | 36.94 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▲0.01 | 657.80 ▼36.97 | 59.22 ▼5.10 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▲0.09 | 99.18 ▼19.71 | 44.26 ▲0.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
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)
No browser issues were found
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
6 plugin tags: offerings, offers, woocommerce, negotiations, price...
price-offerings-for-woocommerce/price-offerings-for-woocommerce.php Passed 13 tests
This is the main PHP file of "Price Offers for WooCommerce" version 2.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Allows your customers to start product price negotiations with you.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,471 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 425 | 1,235 | 2,384 |
CSS | 2 | 8 | 14 | 54 |
JavaScript | 2 | 14 | 44 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 1 | 5.56% |
Methods | 137 | |
▷ Static methods | 11 | 8.03% |
▷ Public methods | 137 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
No PNG files were detected