Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/komper/komper.php+302
Function create_function() is deprecated
Server metrics [RAM: ▼1.88MB] [CPU: ▼195.30ms] Passed 4 tests
Server-side resources used by Komper
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.75 ▼0.97 | 4.31 ▼21.45 |
Dashboard /wp-admin | 1.77 ▼1.29 | 4.99 ▼41.27 |
Posts /wp-admin/edit.php | 1.77 ▼1.34 | 5.54 ▼42.84 |
Add New Post /wp-admin/post-new.php | 1.77 ▼3.67 | 5.21 ▼662.57 |
Media Library /wp-admin/upload.php | 1.77 ▼1.24 | 4.93 ▼34.51 |
Komper Settings /wp-admin/options-general.php?page=Komper | 1.77 | 4.79 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 36 new files
Database: 3 new tables, 3 new options
New tables |
---|
wp_komper_value |
wp_komper_field |
wp_komper_product |
New WordPress options |
---|
recovery_mode_email_last_sent |
komper_db_version |
widget_komper |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Komper
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,687 ▲91 | 15.96 ▲0.48 | 9.18 ▼2.12 | 48.44 ▼3.21 |
Dashboard /wp-admin | 2,978 ▲47 | 6.63 ▲0.56 | 146.24 ▼11.03 | 117.54 ▼3.96 |
Posts /wp-admin/edit.php | 2,747 ▲8 | 2.51 ▼0.18 | 78.33 ▲9.76 | 100.66 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,621 ▼62 | 21.47 ▲5.11 | 275.74 ▼111.05 | 108.84 ▼3.77 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.37 ▲0.37 | 174.48 ▲23.13 | 124.22 ▼10.65 |
Komper Settings /wp-admin/options-general.php?page=Komper | 877 | 2.30 | 42.05 | 51.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/komper/komper.php+302
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_komper_product
- wp_komper_field
- wp_komper_value
- This plugin did not uninstall successfully, leaving 3 options in the database
- recovery_mode_email_last_sent
- komper_db_version
- widget_komper
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=Komper
- > Deprecated in wp-content/plugins/komper/komper.php+302
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=Komper
- > Warning in wp-content/plugins/komper/komper.php+445
Use of undefined constant list_fieldtype - assumed 'list_fieldtype' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=Komper
- > Warning in wp-content/plugins/komper/komper.php+446
Use of undefined constant list_textformat - assumed 'list_textformat' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=Komper
- > Warning in wp-content/plugins/komper/komper.php+447
Use of undefined constant format_text - assumed 'format_text' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=Komper
- > Notice in wp-content/plugins/komper/komper.php+448
Undefined variable: format
- > GET request to /wp-admin/options-general.php?page=Komper
- > Notice in wp-content/plugins/komper/komper.php+448
Undefined variable: text
- > GET request to /wp-admin/options-general.php?page=Komper
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in Komper is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Komper
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=Komper
- > Parse error in wp-content/plugins/komper/komper_admin.php+331
syntax error, unexpected end of file
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/komper/komper_admin.php on line 331
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/komper/config.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/komper/config.php:23
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/komper/config.php on line 7
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/komper/config.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/komper/config.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/komper/output.php:109
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/komper/config.php on line 6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/komper/config.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/komper/config.php on line 7
- > PHP Parse error
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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Create product spesification fields), #2 (Product list), #3 (Add product spesification, the field forms based on product specification fields.), #4 (Comparison Form Widget with autocomplete), #5 (Add product comparison table into post / page (Pro version)), #6 (Comparison table chart and form in posts (Pro version)), #7 (Sample output comparison table chart without wordpress header), #8 (Sample output comparison table chart __with__ wordpress header)
komper/komper.php Passed 13 tests
The main PHP file in "Komper" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
113 characters long description:
A plugin to create side-by-side product comparison. This is free version, get the pro version with more features!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,313 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 121 | 33 | 1,239 |
JavaScript | 2 | 3 | 6 | 53 |
CSS | 4 | 2 | 27 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 1.56MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
assets/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
assets/css/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
screenshot-8.png | 100.17KB | 31.55KB | ▼ 68.51% |
assets/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |