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
Installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼8.49ms] Passed 4 tests
Server-side resources used by Kriptomat Cryptocurrency Price Widgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 38.80 ▼1.75 |
Dashboard /wp-admin | 3.66 ▲0.32 | 47.03 ▼17.39 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 45.28 ▲5.55 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 82.93 ▼18.28 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 37.54 ▲3.45 |
Plugin Menu /wp-admin/options-general.php?page=myplugin | 3.52 | 32.51 |
Server storage [IO: ▲2.81MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 260 new files
Database: no new tables, 41 new options
New WordPress options |
---|
kriptomatpricewidgets_option_colourBannerBackground |
kriptomatpricewidgets_option_tickerchoice2 |
kriptomatpricewidgets_option_tickerchoice1 |
kriptomatpricewidgets_option_colourRowEven |
kriptomatpricewidgets_option_colourBuyBackground_Calc |
kriptomatpricewidgets_option_tickerchoice11 |
kriptomatpricewidgets_option_colourMarqueeBackground |
kriptomatpricewidgets_option_tickerchoice10 |
kriptomatpricewidgets_option_tickerchoice8 |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Kriptomat Cryptocurrency Price Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲143 | 13.60 ▼0.69 | 5.28 ▲3.51 | 36.39 ▼8.60 |
Dashboard /wp-admin | 2,212 ▲21 | 5.85 ▲0.94 | 107.51 ▲5.53 | 38.00 ▲0.58 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▼0.01 | 39.93 ▲0.26 | 35.41 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,519 ▼9 | 17.66 ▼0.68 | 665.46 ▲54.75 | 52.80 ▲0.70 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.20 ▲0.05 | 104.10 ▲6.45 | 47.59 ▲3.56 |
Plugin Menu /wp-admin/options-general.php?page=myplugin | 2,897 | 2.04 | 24.64 | 66.96 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 41 options in the database
- kriptomatpricewidgets_option_colourOptionBackground_Calc
- kriptomatpricewidgets_option_tickerchoice13
- kriptomatpricewidgets_option_colourBuyBackground_Calc
- kriptomatpricewidgets_option_colourBackground_Calc
- kriptomatpricewidgets_option_tickerchoice12
- kriptomatpricewidgets_option_colourMarqueeText
- kriptomatpricewidgets_option_colourText_Calc
- kriptomatpricewidgets_option_colourBannerBackground_Calc
- kriptomatpricewidgets_option_tickerchoice9
- kriptomatpricewidgets_option_colourMarqueeBackground
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=myplugin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=myplugin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 28 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=myplugin
- > Notice in wp-content/plugins/kriptomat-cryptocurrency-price-widget/Kriptomat_WP_Plugin.php+887
Undefined variable: svgdown
- > GET request to /wp-admin/options-general.php?page=myplugin
- > Notice in wp-content/plugins/kriptomat-cryptocurrency-price-widget/Kriptomat_WP_Plugin.php+1270
Undefined variable: r
- > GET request to /wp-admin/options-general.php?page=myplugin
- > Notice in wp-content/plugins/kriptomat-cryptocurrency-price-widget/Kriptomat_WP_Plugin.php+1270
Undefined variable: g
- > GET request to /wp-admin/options-general.php?page=myplugin
- > Notice in wp-content/plugins/kriptomat-cryptocurrency-price-widget/Kriptomat_WP_Plugin.php+1270
Undefined variable: b
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=myplugin
- > Notice in wp-content/plugins/kriptomat-cryptocurrency-price-widget/Kriptomat_WP_Plugin.php+1410
Undefined index: propy
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=myplugin
- > Notice in wp-content/plugins/kriptomat-cryptocurrency-price-widget/Kriptomat_WP_Plugin.php+1410
Undefined index: rep
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=myplugin
- > Notice in wp-content/plugins/kriptomat-cryptocurrency-price-widget/Kriptomat_WP_Plugin.php+1410
Undefined index: xtv
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kriptomat-cryptocurrency-price-widget/Kriptomat_WP_Plugin.php:120
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: A description for screenshot #8 is missing in kriptomat-cryptocurrency-price-widget/assets to your readme.txt
kriptomat-cryptocurrency-price-widget/Kriptomat_WP_Plugin.php 92% from 13 tests
The principal PHP file in "Kriptomat Cryptocurrency Price Widgets" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kriptomat-cryptocurrency-price-widget.php" instead of "Kriptomat_WP_Plugin.php")
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
There were no executable files found in this plugin6,168 lines of code in 256 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 569 | 149 | 3,481 |
SVG | 255 | 0 | 3 | 2,687 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/eur.png | 9.22KB | 3.35KB | ▼ 63.72% |
images/dash.png | 31.92KB | 13.10KB | ▼ 58.96% |