Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.19ms] Passed 4 tests
Server-side resources used by DeMomentSomTres Woocommerce Minimum Purchase Message
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 47.25 ▲0.45 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.23 ▼2.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 55.62 ▲4.84 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 96.64 ▼6.11 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.32 ▲3.03 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
DeMomentSomTres Woocommerce Minimum Purchase Message: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.58 ▲0.20 | 1.63 ▼0.00 | 41.32 ▼2.87 |
Dashboard /wp-admin | 2,209 ▲29 | 5.63 ▼0.05 | 91.62 ▼7.85 | 43.02 ▲2.93 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.00 ▼0.01 | 40.38 ▲2.39 | 37.45 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.26 ▼0.34 | 631.33 ▼49.15 | 55.65 ▼3.55 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.19 ▼0.15 | 95.40 ▼8.27 | 41.85 ▼5.31 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/demomentsomtres-wc-minimum-purchase-message/demomentsomtres-WC-minimum-purchase-message.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: delivery, woocommerce, delivery date
demomentsomtres-wc-minimum-purchase-message/demomentsomtres-WC-minimum-purchase-message.php 85% from 13 tests
This is the main PHP file of "DeMomentSomTres Woocommerce Minimum Purchase Message" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("demomentsomtres-wc-minimum-purchase-message.php" instead of "demomentsomtres-WC-minimum-purchase-message.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.9.1" instead of "3.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin225 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 53 | 127 |
PO File | 2 | 28 | 56 | 98 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin