Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.55ms] Passed 4 tests
This is a short check of server-side resources used by ING Lease Now
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.71 ▲0.55 |
Dashboard /wp-admin | 3.43 ▲0.13 | 47.54 ▼3.16 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 48.88 ▼4.31 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 87.66 ▼11.29 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 39.53 ▲2.52 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 88 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ln_reservationlist |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by ING Lease Now
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.27 ▼1.35 | 4.90 ▲2.97 | 43.23 ▲0.49 |
Dashboard /wp-admin | 2,206 ▲24 | 5.82 ▲0.00 | 107.53 ▲0.30 | 40.18 ▼2.88 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.02 ▼0.03 | 36.49 ▼4.70 | 33.79 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,535 ▼3 | 23.01 ▼0.06 | 649.27 ▼34.85 | 53.07 ▼0.29 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.09 | 100.59 ▼7.25 | 44.38 ▼1.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_ln_reservationlist
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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
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 items
- 40× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'JsonSchema\\Constraints\\TypeCheck\\TypeCheckInterface' not found in wp-content/plugins/ing-lease-now/includes/libs/Payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php:5
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/ing-lease-now/includes/libs/Payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ing-lease-now/woocommerce-leasenow.php:99
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/ing-lease-now/includes/libs/Payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/NumberConstraint.php:20
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/ing-lease-now/includes/libs/Payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php:20
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/ing-lease-now/includes/libs/Payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ing-lease-now/includes/templates/leasenow_button_test.php:69
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/ing-lease-now/includes/libs/Payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php:20
- > PHP Fatal error
Uncaught Error: Interface 'JsonSchema\\UriRetrieverInterface' not found in wp-content/plugins/ing-lease-now/includes/libs/Payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php:25
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Exception\\RuntimeException' not found in wp-content/plugins/ing-lease-now/includes/libs/Payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: leasing, ing, ing lease now, online payments, ing lease...
ing-lease-now/woocommerce-leasenow.php 85% from 13 tests
"ING Lease Now" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- 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
- Main file name: Name the main plugin file the same as the plugin slug ("ing-lease-now.php" instead of "woocommerce-leasenow.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/ing-lease-now/includes/libs/Payment-core/vendor/bin/validate-json.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 65 | 1,167 | 2,013 | 4,667 |
JSON | 7 | 31 | 0 | 463 |
Markdown | 2 | 50 | 0 | 170 |
PO File | 1 | 40 | 49 | 129 |
XML | 1 | 2 | 0 | 24 |
Bourne Shell | 1 | 3 | 1 | 10 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 11.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 230 | |
▷ Static methods | 43 | 18.70% |
▷ Public methods | 171 | 74.35% |
▷ Protected methods | 36 | 15.65% |
▷ Private methods | 23 | 10.00% |
Functions | 45 | |
▷ Named functions | 37 | 82.22% |
▷ Anonymous functions | 8 | 17.78% |
Constants | 94 | |
▷ Global constants | 2 | 2.13% |
▷ Class constants | 92 | 97.87% |
▷ Public constants | 92 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/leasenow_button_test.png | 0.29KB | 0.12KB | ▼ 58.22% |
resources/images/logo.png | 4.29KB | 2.61KB | ▼ 39.20% |