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.17MB] [CPU: ▼21.26ms] Passed 4 tests
Server-side resources used by NET-30 Terms for Woocommercee
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.39 ▼5.14 |
Dashboard /wp-admin | 3.20 ▼0.14 | 28.88 ▼30.53 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 32.52 ▼17.42 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.44 | 71.61 ▼31.96 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 34.44 ▲0.34 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NET-30 Terms for Woocommercee
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,450 ▼1,296 | 12.42 ▼1.96 | 1.88 ▲0.05 | 37.07 ▼5.97 |
Dashboard /wp-admin | 843 ▼1,349 | 1.38 ▼3.58 | 13.19 ▼95.50 | 15.75 ▼27.00 |
Posts /wp-admin/edit.php | 854 ▼1,235 | 1.53 ▼0.52 | 6.21 ▼34.08 | 15.50 ▼21.11 |
Add New Post /wp-admin/post-new.php | 580 ▼934 | 1.73 ▼15.73 | 23.14 ▼658.86 | 7.86 ▼49.98 |
Media Library /wp-admin/upload.php | 739 ▼649 | 1.73 ▼2.51 | 24.55 ▼74.87 | 24.46 ▼22.71 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-net-30-terms-for-woocommerce/woocommerce-net-30.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: net-30, woocommerce
wc-net-30-terms-for-woocommerce/woocommerce-net-30.php 77% from 13 tests
The main file in "NET-30 Terms for Woocommercee" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wc-net-30-terms-for-woocommerce.php" instead of "woocommerce-net-30.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected65 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 31 | 43 |
Markdown | 1 | 19 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/with-net-30.png | 41.70KB | 16.81KB | ▼ 59.68% |
screenshots/enable-cheque-option.png | 34.98KB | 14.08KB | ▼ 59.76% |
screenshots/without-net-30.png | 39.57KB | 15.50KB | ▼ 60.84% |
screenshots/activate-net-30-terms.png | 19.38KB | 8.37KB | ▼ 56.79% |