Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.48MB] [CPU: ▼5.89ms] Passed 4 tests
A check of server-side resources used by Loan Comparison
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 42.91 ▼7.16 |
Dashboard /wp-admin | 3.89 ▲0.54 | 51.59 ▼8.20 |
Posts /wp-admin/edit.php | 4.00 ▲0.65 | 56.96 ▲9.89 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.58 | 81.66 ▼11.51 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 38.40 ▲3.30 |
Loan Comparison /wp-admin/options-general.php?page=loan-comparison/settings.php | 3.86 | 39.24 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Loan Comparison
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,078 ▲332 | 15.42 ▲1.07 | 7.70 ▲5.47 | 42.71 ▼8.47 |
Dashboard /wp-admin | 2,363 ▲186 | 6.37 ▲0.79 | 115.14 ▲8.55 | 40.81 ▼4.89 |
Posts /wp-admin/edit.php | 2,285 ▲182 | 3.66 ▲1.63 | 56.12 ▲16.69 | 36.08 ▼0.72 |
Add New Post /wp-admin/post-new.php | 6,389 ▲4,861 | 28.06 ▲4.94 | 931.48 ▲243.20 | 39.60 ▼11.62 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.40 ▲0.14 | 81.04 ▼14.42 | 45.63 ▲3.05 |
Loan Comparison /wp-admin/options-general.php?page=loan-comparison/settings.php | 3,324 | 3.59 | 46.91 | 88.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loan-comparison/settings.php:1949
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/loan-comparison/loancomparison.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (The loan comparison table), #2 (Barcharts), #3 (Bank settings), #4 (Custom layout example)
- Contributors: The plugin contributors field is missing
- Contributors: The plugin tags were not defined
loan-comparison/loancomparison.php 92% from 13 tests
The main PHP script in "Loan Comparison" version 1.6 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("loan-comparison.php" instead of "loancomparison.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 plugin5,413 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 554 | 71 | 2,676 |
JavaScript | 5 | 365 | 99 | 1,364 |
PO File | 2 | 447 | 447 | 1,002 |
CSS | 2 | 59 | 24 | 371 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
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 | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.39MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/application-form.png | 17.11KB | 4.53KB | ▼ 73.53% |
images/Arcadia-Finans.png | 4.78KB | 2.77KB | ▼ 42.12% |
screenshot-2.png | 68.71KB | 17.15KB | ▼ 75.05% |
images/Consector.png | 6.04KB | 3.01KB | ▼ 50.19% |
screenshot-4.png | 92.19KB | 26.57KB | ▼ 71.18% |