Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▼141.04ms] Passed 4 tests
A check of server-side resources used by MSEuroRates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 36.14 ▲8.23 |
Dashboard /wp-admin | 3.09 ▲0.03 | 49.97 ▲3.82 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 52.18 ▲5.91 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.04 ▼578.77 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 36.06 ▲4.89 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_mser_widget |
Browser metrics Passed 4 tests
A check of browser resources used by MSEuroRates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 15.90 ▲0.46 | 7.42 ▲2.38 | 50.83 ▼0.91 |
Dashboard /wp-admin | 2,986 ▲55 | 5.96 ▲0.02 | 162.46 ▲11.58 | 125.81 ▲13.18 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 79.42 ▲9.36 | 88.09 ▼4.45 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.75 ▼0.08 | 378.61 ▼7.77 | 110.30 ▼9.07 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.02 | 156.52 ▼8.98 | 123.23 ▼1.11 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- widget_mser_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mseurorates-lite/ms-eurorates-lite.php:13
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: currency conversion, euro, rates, exchange
mseurorates-lite/ms-eurorates-lite.php 92% from 13 tests
The main file in "MSEuroRates" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mseurorates-lite.php" instead of "ms-eurorates-lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin141 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 69 | 27 | 140 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/BGN.png | 3.59KB | 1.25KB | ▼ 65.36% |
images/INR.png | 3.79KB | 1.26KB | ▼ 66.85% |
images/KRW.png | 3.79KB | 1.13KB | ▼ 70.07% |
images/RUB.png | 3.60KB | 1.20KB | ▼ 66.78% |
images/CNY.png | 3.63KB | 1.25KB | ▼ 65.74% |