Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.30ms] Passed 4 tests
This is a short check of server-side resources used by Leartes TRY Exchange Rates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.44 ▲2.89 |
Dashboard /wp-admin | 3.45 ▲0.10 | 53.53 ▼11.70 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 53.32 ▲0.35 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 92.25 ▼12.05 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.04 ▲2.22 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_lbi_exch_rates |
Browser metrics Passed 4 tests
A check of browser resources used by Leartes TRY Exchange Rates
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.34 ▼0.00 | 1.58 ▼0.29 | 42.75 ▼0.21 |
Dashboard /wp-admin | 2,192 ▲12 | 5.56 ▼0.09 | 95.20 ▲0.58 | 37.20 ▼6.36 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.98 ▲0.00 | 32.80 ▼4.90 | 33.36 ▼5.32 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.05 ▲4.85 | 694.22 ▲76.48 | 51.66 ▼12.55 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.22 ▲0.03 | 112.63 ▲12.03 | 46.91 ▲0.77 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_lbi_exch_rates
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)
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 items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/leartes-try-exchange-rates/lbi-exchrates.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/leartes-try-exchange-rates/lbi-exchrates-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in leartes-try-exchange-rates/assets to your readme.txt
leartes-try-exchange-rates/lbi-exchrates.php 85% from 13 tests
The main PHP file in "Leartes TRY Exchange Rates" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("leartes-try-exchange-rates.php" instead of "lbi-exchrates.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,342 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 112 | 64 | 872 |
XML | 1 | 22 | 0 | 257 |
PO File | 1 | 76 | 77 | 170 |
CSS | 1 | 8 | 3 | 43 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 18.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 25 | 86.21% |
▷ Protected methods | 2 | 6.90% |
▷ Private methods | 2 | 6.90% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.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
19 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/flags/ru.png | 0.12KB | 0.17KB | 0.00% |
assets/flags/no.png | 0.26KB | 0.32KB | 0.00% |
assets/flags/gb.png | 0.39KB | 0.43KB | 0.00% |
assets/flags/cn.png | 0.18KB | 0.25KB | 0.00% |
assets/flags/dk.png | 0.18KB | 0.22KB | 0.00% |