Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.89ms] Passed 4 tests
Analyzing server-side resources used by Pending Payment Reminder for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 47.13 ▲9.36 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.01 ▼0.06 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.24 ▼6.19 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.86 ▼30.37 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 37.03 ▲1.05 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Pending Payment Reminder for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.26 ▼0.36 | 1.73 ▼0.08 | 43.98 ▲4.43 |
Dashboard /wp-admin | 2,196 ▲18 | 5.53 ▼0.12 | 82.33 ▼23.42 | 39.43 ▼2.34 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.05 | 34.13 ▼0.98 | 35.60 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,541 ▲4 | 18.36 ▲0.03 | 628.84 ▼12.11 | 86.03 ▲17.80 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▼0.07 | 103.65 ▲10.15 | 49.49 ▲6.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'prfw_app' not found in wp-content/plugins/pending-payment-reminder-for-woocommerce/classes/handler.class.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/pending-payment-reminder-for-woocommerce/emails/class-wc-customer-pending-payment.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pending-payment-reminder-for-woocommerce/admin/views/dashboard.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: payment reminder, pending payment, email reminder
pending-payment-reminder-for-woocommerce/pending-payment-reminder.php 69% from 13 tests
"Pending Payment Reminder for WooCommerce" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0.0")
- Domain Path: The domain path is invalid: folder "/language" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("pending-payment-reminder-for-woocommerce.php" instead of "pending-payment-reminder.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
No dangerous file extensions were detected12,299 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,168 | 1,507 | 9,546 |
SVG | 7 | 0 | 3 | 1,190 |
PHP | 17 | 242 | 568 | 807 |
CSS | 4 | 130 | 27 | 752 |
Markdown | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 4 | 6.78% |
▷ Public methods | 53 | 89.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.17% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 7 | |
▷ Global constants | 7 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/lib/jqueryui/images/ui-icons_555555_256x240.png | 3.68KB | 4.18KB | 0.00% |
admin/assets/lib/jqueryui/images/ui-icons_444444_256x240.png | 3.68KB | 4.18KB | 0.00% |