Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼272.06ms] Passed 4 tests
An overview of server-side resources used by DeMomentSomTres Woocommerce Minimum Purchase
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.36 | 37.65 ▲17.36 |
Dashboard /wp-admin | 3.38 ▲0.32 | 44.70 ▲1.33 |
Posts /wp-admin/edit.php | 3.42 ▲0.32 | 45.22 ▼7.53 |
Add New Post /wp-admin/post-new.php | 5.68 ▲0.25 | 88.65 ▼1,077.70 |
Media Library /wp-admin/upload.php | 3.26 ▲0.25 | 37.50 ▼4.35 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.28 | 29.67 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for DeMomentSomTres Woocommerce Minimum Purchase
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,720 ▲114 | 15.82 ▲0.21 | 8.52 ▲0.48 | 50.62 ▼0.86 |
Dashboard /wp-admin | 2,974 ▲124 | 5.88 ▼0.05 | 139.54 ▼1.98 | 111.88 ▲12.80 |
Posts /wp-admin/edit.php | 2,761 ▲58 | 2.70 ▼0.00 | 64.01 ▼2.15 | 94.42 ▲3.76 |
Add New Post /wp-admin/post-new.php | 1,516 ▼152 | 18.32 ▼0.44 | 352.98 ▲6.01 | 111.00 ▼1.23 |
Media Library /wp-admin/upload.php | 1,833 ▲61 | 5.07 ▲0.05 | 151.84 ▼6.04 | 116.85 ▼1.50 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,247 | 2.11 | 50.20 | 57.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/demomentsomtres-woocommerce-minimum-purchase-message/lib/class-tgm-plugin-activation.php:161
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/demomentsomtres-woocommerce-minimum-purchase-message/lib/class-tgm-plugin-activation.php:161
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: minimum purchase, woocommerce
demomentsomtres-woocommerce-minimum-purchase-message/demomentsomtres-WC-minimum-purchase-message.php 85% from 13 tests
The principal PHP file in "DeMomentSomTres Woocommerce Minimum Purchase" v. 0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.9.1" instead of "3.9")
- Main file name: The principal plugin file should be the same as the plugin slug ("demomentsomtres-woocommerce-minimum-purchase-message.php" instead of "demomentsomtres-WC-minimum-purchase-message.php")
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
There were no executable files found in this plugin1,668 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 379 | 809 | 1,238 |
PO File | 2 | 83 | 124 | 287 |
Markdown | 1 | 50 | 0 | 143 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 1 | 2.00% |
▷ Public methods | 43 | 86.00% |
▷ Protected methods | 6 | 12.00% |
▷ Private methods | 1 | 2.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin