84% lsx-currencies

Code Review | LSX Currencies

WordPress plugin LSX Currencies scored84%from 54 tests.

About plugin

  • Plugin page: lsx-currencies
  • Plugin version: 1.2.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 4, 2019
  • Latest release: Aug 11, 2023
  • Number of updates: 12
  • Update frequency: every 119.8 days
  • Top authors: feedmymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼13.07ms] Passed 4 tests

Analyzing server-side resources used by LSX Currencies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.68298.62 ▲256.70
Dashboard /wp-admin3.34 ▼0.0151.54 ▼16.32
Posts /wp-admin/edit.php3.39 ▲0.0353.35 ▼17.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.49 ▼22.44
Media Library /wp-admin/upload.php3.26 ▲0.0347.00 ▲3.70
Theme Options /wp-admin/themes.php?page=lsx-settings3.3131.47

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 574 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for LSX Currencies
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14213.97 ▼0.575.75 ▲3.8942.81 ▼1.29
Dashboard /wp-admin2,212 ▲275.86 ▲0.82102.83 ▼17.5739.50 ▼7.32
Posts /wp-admin/edit.php2,095 ▲32.03 ▼0.0234.71 ▼10.0630.93 ▼12.32
Add New Post /wp-admin/post-new.php1,532 ▼121.03 ▼2.17668.09 ▼3.8159.32 ▲2.86
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.05102.18 ▼6.5948.52 ▲3.35
Theme Options /wp-admin/themes.php?page=lsx-settings2,6842.3139.4633.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/lsx-currencies/includes/settings/general.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/lsx-currencies/includes/settings/display.php:115
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lsx-currencies/includes/template-tags.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/lsx-currencies/includes/settings/api.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

lsx-currencies/lsx-currencies.php 92% from 13 tests

The main file in "LSX Currencies" v. 1.2.7 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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)

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 detected7,476 lines of code in 548 files:
LanguageFilesBlank linesComment linesLines of code
CSS82,13282,166
PHP123216821,734
JavaScript153363801,280
SVG498001,271
Sass7564534
YAML450185
PO File16163135
Markdown162096
XML2305275

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity30.71
▷ Minimum class complexity2.00
▷ Maximum class complexity66.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods67
▷ Static methods1116.42%
▷ Public methods6292.54%
▷ Protected methods00.00%
▷ Private methods57.46%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin