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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.01ms] Passed 4 tests
A check of server-side resources used by Product Assembly / Gift Wrap / ... Cost for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.82 ▲1.58 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.19 ▼8.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.14 ▼0.93 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.96 ▼8.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.74 ▲1.27 |
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: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Assembly / Gift Wrap / ... Cost for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.13 ▼0.14 | 2.08 ▲0.35 | 43.84 ▼1.67 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▲0.03 | 92.58 ▼10.36 | 39.53 ▼4.37 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 38.90 ▲4.42 | 35.71 ▼3.55 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.30 ▲0.23 | 646.06 ▼64.08 | 54.20 ▲0.97 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.20 ▼0.02 | 99.76 ▼2.66 | 41.03 ▼4.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
8 plugin tags: woocommerce, extra service, gift wrap, assembly, extra cost...
product-assembly-cost/product-assembly-cost.php Passed 13 tests
The main PHP script in "Product Assembly / Gift Wrap / ... Cost for WooCommerce" version 3.1 is automatically included on every request by WordPress
129 characters long description:
Add an option to your WooCommerce products to enable assembly, gift wrap or any other service and optionally charge a fee for it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin712 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 73 | 712 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 111.00 |
▷ Minimum class complexity | 111.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 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