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.02MB] [CPU: ▼6.39ms] Passed 4 tests
Analyzing server-side resources used by Kursy walut (Exchange rates)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.95 ▼3.47 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.34 ▼3.67 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.78 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 95.47 ▼15.28 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.19 ▼1.33 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_kw_config |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_exchange_rates_ekantorpl_kw_widget |
can_compress_scripts |
widget_theysaidso_widget |
kw_db_version |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Kursy walut (Exchange rates)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲204 | 13.69 ▼0.68 | 13.00 ▲11.14 | 42.50 ▼2.78 |
Dashboard /wp-admin | 2,225 ▲37 | 4.91 ▼0.01 | 106.25 ▼10.09 | 77.62 ▲30.96 |
Posts /wp-admin/edit.php | 2,111 ▲25 | 2.00 ▼0.05 | 36.62 ▲1.72 | 32.43 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 18.22 ▼4.77 | 649.77 ▼6.20 | 58.54 ▼5.91 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.22 ▼0.02 | 94.89 ▼0.14 | 48.32 ▲6.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_exchange_rates_ekantorpl_kw_widget
- db_upgraded
- kw_db_version
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/kursy-walut-exchange-rates/kursy-walut-ekantorpl.php
- > /wp-content/plugins/kursy-walut-exchange-rates/table.php
- > /wp-content/plugins/kursy-walut-exchange-rates/index.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kursy-walut-exchange-rates/widget.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kursy-walut-exchange-rates/__class/Exchange_rates_ekantorpl_Kw_widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kursy-walut-exchange-rates/__class/Exchange_rates_ekantorpl_Kw_widget.php:6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/kursy-walut-exchange-rates/__class/kw_setup.php on line 14
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/kursy-walut-exchange-rates/__class/kw_setup.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Donate link: Invalid url: ""
kursy-walut-exchange-rates/kursy-walut-ekantorpl.php 85% from 13 tests
This is the main PHP file of "Kursy walut (Exchange rates)" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kursy-walut-exchange-rates.php" instead of "kursy-walut-ekantorpl.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,123 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 685 |
PHP | 11 | 93 | 70 | 418 |
CSS | 2 | 2 | 3 | 12 |
JavaScript | 2 | 0 | 2 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 18 | 69.23% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 14 | 77.78% |
▷ Anonymous functions | 4 | 22.22% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ekantor_logo.png | 9.80KB | 1.29KB | ▼ 86.82% |
img/ekantor_logo_wp_male.png | 9.80KB | 1.29KB | ▼ 86.82% |