84% mseurorates-lite

Code Review | MSEuroRates

WordPress plugin MSEuroRates scored 84% from 54 tests.

About plugin

  • Plugin page: mseurorates-lite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 5.8.1
  • First release: May 9, 2014
  • Latest release: May 9, 2014
  • Number of updates: 4
  • Update frequency: every 8.0 days
  • Top authors: wpmoncho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 715 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.14 ▲8.23
Dashboard /wp-admin3.09 ▲0.0349.97 ▲3.82
Posts /wp-admin/edit.php3.14 ▲0.0352.18 ▲5.91
Add New Post /wp-admin/post-new.php5.44 ▲0.0195.04 ▼578.77
Media Library /wp-admin/upload.php3.03 ▲0.0336.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.90 ▲0.467.42 ▲2.3850.83 ▼0.91
Dashboard /wp-admin2,986 ▲555.96 ▲0.02162.46 ▲11.58125.81 ▲13.18
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0179.42 ▲9.3688.09 ▼4.45
Add New Post /wp-admin/post-new.php1,683 ▼018.75 ▼0.08378.61 ▼7.77110.30 ▼9.07
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.02156.52 ▼8.98123.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP16927140
HTML1001

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 code0.11
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/BGN.png3.59KB1.25KB▼ 65.36%
images/INR.png3.79KB1.26KB▼ 66.85%
images/KRW.png3.79KB1.13KB▼ 70.07%
images/RUB.png3.60KB1.20KB▼ 66.78%
images/CNY.png3.63KB1.25KB▼ 65.74%