Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.62ms] Passed 4 tests
This is a short check of server-side resources used by Latitude Interest Free Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.39 ▼1.97 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.48 ▲2.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.77 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.60 ▼14.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.96 ▲2.28 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Latitude Interest Free Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.00 | 1.84 ▲0.21 | 40.65 ▲2.22 |
Dashboard /wp-admin | 2,195 ▲15 | 5.48 ▼0.18 | 82.26 ▼3.94 | 39.37 ▼3.63 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.96 ▼0.05 | 40.75 ▲4.73 | 36.40 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.23 ▼0.41 | 665.34 ▼14.11 | 59.14 ▼4.01 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.01 | 93.12 ▼0.25 | 42.49 ▲0.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
The use statement with non-compound name 'Latitude_Checkout_Environment_Settings' has no effect in wp-content/plugins/latitude-interest-free-gateway-for-woocommerce/classes/wc-latitudecheckout-gateway.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/latitude-interest-free-gateway-for-woocommerce/classes/wc-latitudecheckout-gateway.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/latitude-interest-free-gateway-for-woocommerce/includes/admin-form.php:9
- > PHP Warning
The use statement with non-compound name 'Latitude_Checkout_Constants' has no effect in wp-content/plugins/latitude-interest-free-gateway-for-woocommerce/classes/api-callback-handler.php on line 10
- > PHP Warning
The use statement with non-compound name 'Latitude_Checkout_Environment_Settings' has no effect in wp-content/plugins/latitude-interest-free-gateway-for-woocommerce/classes/services/service-api.php on line 9
- > PHP Warning
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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in latitude-interest-free-gateway-for-woocommerce/assets to your readme.txt
latitude-interest-free-gateway-for-woocommerce/latitude-checkout-for-woocommerce.php 77% from 13 tests
The main PHP file in "Latitude Interest Free Gateway for WooCommerce" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.2.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("latitude-interest-free-gateway-for-woocommerce.php" instead of "latitude-checkout-for-woocommerce.php")
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
There were no executable files found in this plugin1,793 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 343 | 535 | 1,724 |
JavaScript | 2 | 4 | 0 | 63 |
CSS | 1 | 0 | 0 | 4 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 17 | 13.28% |
▷ Public methods | 71 | 55.47% |
▷ Protected methods | 8 | 6.25% |
▷ Private methods | 49 | 38.28% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 68 | |
▷ Global constants | 3 | 4.41% |
▷ Class constants | 65 | 95.59% |
▷ Public constants | 65 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected