83% creo-currency-converter-lite-for-woocommerce

Code Review | Creo Currency Converter Lite for Woocommerce

WordPress plugin Creo Currency Converter Lite for Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: creo-currency-con...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Nov 10, 2015
  • Latest release: Nov 13, 2015
  • Number of updates: 6
  • Update frequency: every 1.3 days
  • Top authors: Rashedamin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,466 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.92ms] Passed 4 tests

A check of server-side resources used by Creo Currency Converter Lite for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0241.49 ▲1.21
Dashboard /wp-admin3.31 ▲0.0047.90 ▼0.31
Posts /wp-admin/edit.php3.36 ▲0.0044.52 ▼7.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.44 ▲7.22
Media Library /wp-admin/upload.php3.23 ▲0.0037.83 ▲3.31

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Creo Currency Converter Lite for Woocommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲20813.93 ▼0.378.68 ▲6.5645.24 ▼2.86
Dashboard /wp-admin2,206 ▲185.86 ▲0.9399.57 ▼18.1736.16 ▼5.81
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0436.41 ▼0.4933.34 ▲0.03
Add New Post /wp-admin/post-new.php1,533 ▲1923.29 ▲5.64646.10 ▼87.0261.72 ▼9.65
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0798.85 ▼9.8944.57 ▼4.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/creo-currency-converter-lite-for-woocommerce/woocommerce-currency-converter-lite.php

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 83% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #0, #0, #0, #0 in creo-currency-converter-lite-for-woocommerce/assets to your readme.txt
  • Screenshots: These screenshots do not have images: #1 (Add to Widgets), #2 (Creo Currency Converter Dropdown Preview), #3 (Available Currencies), #4 (Search Option (**Pro only**))
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

creo-currency-converter-lite-for-woocommerce/woocommerce-currency-converter-lite.php 85% from 13 tests

Analyzing the main PHP file in "Creo Currency Converter Lite for Woocommerce" version 1.0.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("creo-currency-converter-lite-for-woocommerce.php" instead of "woocommerce-currency-converter-lite.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Success! There were no dangerous files found in this plugin8,525 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS54675864,193
JavaScript22141074,163
PHP12536147
PO File15722

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.24MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot_2.png85.01KB33.57KB▼ 60.51%
screenshot_1.png32.00KB12.46KB▼ 61.04%
screenshot_4.png85.66KB33.59KB▼ 60.79%
screenshot_3.png47.73KB19.81KB▼ 58.49%