Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼13.07ms] Passed 4 tests
Analyzing server-side resources used by Calcurates for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.32 ▼14.20 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.55 ▼13.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.86 ▼4.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.99 ▼20.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.60 ▼0.80 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Calcurates for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.16 | 1.76 ▲0.19 | 44.45 ▲6.26 |
Dashboard /wp-admin | 2,189 ▲9 | 5.52 ▼0.15 | 82.52 ▼5.99 | 37.17 ▼7.00 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.07 | 33.84 ▼6.12 | 34.43 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.25 ▼0.20 | 682.97 ▼0.27 | 66.76 ▲11.35 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▲0.05 | 93.32 ▼6.60 | 39.78 ▼4.08 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
calcurates-for-woocommerce/wc-calcurates.php 92% from 13 tests
Analyzing the main PHP file in "Calcurates for WooCommerce" version 1.6.3
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("calcurates-for-woocommerce.php" instead of "wc-calcurates.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,264 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 603 | 897 | 2,687 |
JavaScript | 30 | 45 | 26 | 496 |
JSON | 2 | 0 | 0 | 44 |
CSS | 2 | 6 | 0 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 1 | 3.70% |
▷ Concrete classes | 26 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 151 | |
▷ Static methods | 28 | 18.54% |
▷ Public methods | 124 | 82.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 27 | 17.88% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 11 | |
▷ Global constants | 1 | 9.09% |
▷ Class constants | 10 | 90.91% |
▷ Public constants | 10 | 100.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
There are no PNG files in this plugin