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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 298.62 ▲256.70 |
Dashboard /wp-admin | 3.34 ▼0.01 | 51.54 ▼16.32 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.35 ▼17.21 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.49 ▼22.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 47.00 ▲3.70 |
Theme Options /wp-admin/themes.php?page=lsx-settings | 3.31 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲142 | 13.97 ▼0.57 | 5.75 ▲3.89 | 42.81 ▼1.29 |
Dashboard /wp-admin | 2,212 ▲27 | 5.86 ▲0.82 | 102.83 ▼17.57 | 39.50 ▼7.32 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.03 ▼0.02 | 34.71 ▼10.06 | 30.93 ▼12.32 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 21.03 ▼2.17 | 668.09 ▼3.81 | 59.32 ▲2.86 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.05 | 102.18 ▼6.59 | 48.52 ▲3.35 |
Theme Options /wp-admin/themes.php?page=lsx-settings | 2,684 | 2.31 | 39.46 | 33.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
- > PHP Fatal error
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:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in lsx-currencies/assets to your 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 2,132 | 8 | 2,166 |
PHP | 12 | 321 | 682 | 1,734 |
JavaScript | 15 | 336 | 380 | 1,280 |
SVG | 498 | 0 | 0 | 1,271 |
Sass | 7 | 56 | 4 | 534 |
YAML | 4 | 5 | 0 | 185 |
PO File | 1 | 61 | 63 | 135 |
Markdown | 1 | 62 | 0 | 96 |
XML | 2 | 30 | 52 | 75 |
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 code | 0.49 |
Average class complexity | 30.71 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 11 | 16.42% |
▷ Public methods | 62 | 92.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.46% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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