78% myshopkit-multi-currency-converter-wp

Code Review | Currency Converter - MyShopKit

WordPress plugin Currency Converter - MyShopKit scored 78% from 54 tests.

About plugin

  • Plugin page: myshopkit-multi-c...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2021
  • Latest release: Sep 17, 2022
  • Number of updates: 11
  • Update frequency: every 27.1 days
  • Top authors: wiloke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 721 total downloads

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.25MB] [CPU: ▲3.89ms] Passed 4 tests

Server-side resources used by Currency Converter - MyShopKit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2757.40 ▲10.02
Dashboard /wp-admin3.59 ▲0.2855.97 ▲1.73
Posts /wp-admin/edit.php3.64 ▲0.2849.15 ▲0.35
Add New Post /wp-admin/post-new.php6.12 ▲0.23101.21 ▲4.99
Media Library /wp-admin/upload.php3.45 ▲0.2244.13 ▲8.50
Multi Currency Dashboard /wp-admin/admin.php?page=mskmc_dashboard3.4236.38
Auth Settings /wp-admin/admin.php?page=mskmc_auth-settings3.4334.30

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
mskmc_auth
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Currency Converter - MyShopKit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲18813.93 ▼0.5519.90 ▲17.9443.44 ▼5.28
Dashboard /wp-admin2,225 ▲285.84 ▲0.01107.45 ▼6.4767.13 ▲19.93
Posts /wp-admin/edit.php2,126 ▲371.97 ▼0.0238.84 ▲2.7834.73 ▲3.08
Add New Post /wp-admin/post-new.php1,572 ▲3823.96 ▲0.93762.47 ▲101.9045.57 ▼10.81
Media Library /wp-admin/upload.php1,413 ▲224.12 ▼0.10112.03 ▲13.2550.08 ▲5.67
Multi Currency Dashboard /wp-admin/admin.php?page=mskmc_dashboard1,34411.21248.1399.01
Auth Settings /wp-admin/admin.php?page=mskmc_auth-settings8522.0729.5125.59

Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 | 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
The following issues need your attention
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MSKMCWP\\Illuminate\\Message\\AbstractMessage' not found in wp-content/plugins/myshopkit-multi-currency-converter-wp/src/Illuminate/Message/AjaxMessage.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'MSKMCWP\\Dashboard\\Controllers\\DashboardController' not found in wp-content/plugins/myshopkit-multi-currency-converter-wp/src/Dashboard/Dashboard.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'MSKMCWP\\PostScript\\Controllers\\PostScriptController' not found in wp-content/plugins/myshopkit-multi-currency-converter-wp/src/PostScript/PostScript.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'MSKMCWP\\RateExchange\\Controllers\\RateExchangeController' not found in wp-content/plugins/myshopkit-multi-currency-converter-wp/src/RateExchange/RateExchange.php:2
    • > PHP Fatal error
      Trait 'MSKMCWP\\Dashboard\\Shared\\GeneralHelper' not found in wp-content/plugins/myshopkit-multi-currency-converter-wp/src/Dashboard/Controllers/DashboardController.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'MSKMCWP\\Illuminate\\Message\\AbstractMessage' not found in wp-content/plugins/myshopkit-multi-currency-converter-wp/src/Illuminate/Message/NormalMessage.php:9
    • > PHP Fatal error
      Trait 'MSKMCWP\\Dashboard\\Shared\\GeneralHelper' not found in wp-content/plugins/myshopkit-multi-currency-converter-wp/src/Dashboard/Controllers/AuthController.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/myshopkit-multi-currency-converter-wp/src/Dashboard/Views/AuthSettings.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'MSKMCWP\\Store\\Controllers\\StoreController' not found in wp-content/plugins/myshopkit-multi-currency-converter-wp/src/Store/Store.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'MSKMCWP\\Illuminate\\Message\\AbstractMessage' not found in wp-content/plugins/myshopkit-multi-currency-converter-wp/src/Illuminate/Message/RestMessage.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mskmc_dashboard
    • > Security (severe) in unknown
    https://currency-converter-dashboard.netlify.app/static/js/axios.chunk.js 0 Mixed Content: The page at 'https://currency-converter-dashboard.netlify.app/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '/index.php/wp-json/mskmc/v1/purchase-code'. This request has been blocked; the content must be served over HTTPS.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mskmc_dashboard
    • > Security (severe) in unknown
    https://currency-converter-dashboard.netlify.app/static/js/axios.chunk.js 0 Mixed Content: The page at 'https://currency-converter-dashboard.netlify.app/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '/index.php/wp-json/mskmc/v1/me/settings'. This request has been blocked; the content must be served over HTTPS.
    • > GET request to /wp-admin/admin.php?page=mskmc_auth-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'style')" "TypeError: Cannot read properties of null (reading 'style')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/myshopkit-multi-currency-converter-wp/src/Dashboard/Assets/Js/Script.js?ver=651884034d6fb:7:12)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=mskmc_auth-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'style')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: Please take inspiration from this readme.txt

myshopkit-multi-currency-converter-wp/myshopkit-multi-currency-converter-wp.php 92% from 13 tests

Analyzing the main PHP file in "Currency Converter - MyShopKit" version 1.0.4
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,641 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP282373201,289
JavaScript1176216
JSON200100
Markdown28022
CSS13914

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.56
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces0
Traits1
Classes17
▷ Abstract classes15.88%
▷ Concrete classes1694.12%
▷ Final classes00.00%
Methods95
▷ Static methods1717.89%
▷ Public methods8589.47%
▷ Protected methods44.21%
▷ Private methods66.32%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants12
▷ Global constants866.67%
▷ Class constants433.33%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
src/Dashboard/Assets/Images/ico.png1.59KB1.13KB▼ 28.60%