Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.66MB] [CPU: ▲7.16ms] Passed 4 tests
Analyzing server-side resources used by Comparison Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.01 ▲1.55 | 48.02 ▲3.66 |
Dashboard /wp-admin | 5.01 ▲1.70 | 59.00 ▲12.38 |
Posts /wp-admin/edit.php | 5.06 ▲1.70 | 62.86 ▼1.23 |
Add New Post /wp-admin/post-new.php | 7.60 ▲1.71 | 117.57 ▲23.70 |
Media Library /wp-admin/upload.php | 4.93 ▲1.70 | 53.03 ▲13.81 |
Sliders /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison | 4.93 | 44.62 |
Settings /wp-admin/admin.php?page=ics-comparison-slider&tab=settings | 5.02 | 47.33 |
Add New Slider /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison_add_new | 4.93 | 43.17 |
Comparison Slider /wp-admin/admin.php?page=ics-comparison-slider | 4.93 | 43.23 |
Server storage [IO: ▲4.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 470 new files
Database: 4 new tables, 10 new options
New tables |
---|
wp_ics_modules_type |
wp_ics_usage_stat |
wp_ics_sliders |
wp_ics_modules |
New WordPress options |
---|
wp_ics_db_version |
can_compress_scripts |
ics_opts_data |
theysaidso_admin_options |
ics_plugin_activation_errors |
widget_recent-comments |
wp_ics_db_installed |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Comparison Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.36 ▼0.90 | 1.65 ▼0.27 | 37.84 ▼1.22 |
Dashboard /wp-admin | 2,257 ▲69 | 5.02 ▼0.09 | 108.61 ▼1.97 | 41.05 ▼6.42 |
Posts /wp-admin/edit.php | 2,143 ▲51 | 2.29 ▲0.25 | 38.03 ▼9.50 | 34.06 ▼10.06 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 23.17 ▲0.04 | 701.07 ▲56.28 | 38.54 ▼19.35 |
Media Library /wp-admin/upload.php | 1,439 ▲48 | 4.43 ▲0.19 | 106.58 ▲7.37 | 45.15 ▼0.14 |
Sliders /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison | 1,645 | 4.76 | 81.25 | 77.68 |
Settings /wp-admin/admin.php?page=ics-comparison-slider&tab=settings | 1,523 | 3.64 | 60.50 | 39.86 |
Add New Slider /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison_add_new | 4,974 | 5.22 | 117.50 | 105.80 |
Comparison Slider /wp-admin/admin.php?page=ics-comparison-slider | 1,642 | 4.75 | 79.56 | 46.07 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- ics_plugin_activation_errors
- ics_opts_data
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ics-comparison-slider
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison_add_new
- > Notice in wp-content/plugins/comparison-slider/modules/comparison/views/tpl/comparisonEditAdmin.php+678
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison_add_new
- > Notice in wp-content/plugins/comparison-slider/modules/comparison/views/tpl/comparisonEditAdmin.php+215
Undefined variable: circleWithIconClass
- > GET request to /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison_add_new
- > Notice in wp-content/plugins/comparison-slider/modules/comparison/views/tpl/comparisonEditAdmin.php+228
Undefined variable: circleWithoutIconClass
- > GET request to /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison_add_new
- > Notice in wp-content/plugins/comparison-slider/modules/comparison/views/tpl/comparisonEditAdmin.php+243
Undefined variable: rectangleHeightWithIconClass
- > GET request to /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison_add_new
- > Notice in wp-content/plugins/comparison-slider/modules/comparison/views/tpl/comparisonEditAdmin.php+256
Undefined variable: rectangleWidthWithIconClass
- > GET request to /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison_add_new
- > Notice in wp-content/plugins/comparison-slider/modules/comparison/views/tpl/comparisonEditAdmin.php+270
Undefined variable: rectangleHeightWithoutIconClass
- > GET request to /wp-admin/admin.php?page=ics-comparison-slider&tab=comparison_add_new
- > Notice in wp-content/plugins/comparison-slider/modules/comparison/views/tpl/comparisonEditAdmin.php+283
Undefined variable: rectangleWidthWithoutIconClass
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
- 192× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TokenParserBrokerInterface' not found in wp-content/plugins/comparison-slider/classes/Twig/TokenParserBroker.php:19
- > PHP Fatal error
Uncaught Error: Class 'modelIcs' not found in wp-content/plugins/comparison-slider/modules/supsystic_promo/models/supsystic_promo.php:2
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/comparison-slider/classes/Twig/Node/Expression/Binary/Power.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Twig_LoaderInterface' not found in wp-content/plugins/comparison-slider/classes/Twig/Loader/Filesystem.php:17
- > PHP Fatal error
Uncaught Error: Class 'controllerIcs' not found in wp-content/plugins/comparison-slider/modules/mail/controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/comparison-slider/classes/Twig/Node/If.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/comparison-slider/modules/supsystic_promo/views/tpl/welcomePage.php:7
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/comparison-slider/classes/Twig/Node/SetTemp.php:12
- > PHP Fatal error
Uncaught Error: Class 'controllerIcs' not found in wp-content/plugins/comparison-slider/modules/comparison/controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'moduleIcs' not found in wp-content/plugins/comparison-slider/modules/pages/mod.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ics-comparison-slider
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $ is not a function" "TypeError: $ is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/comparison-slider/modules/comparison/js/admin.comparison.list.js?ver=1.0.4:175:5)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ics-comparison-slider
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
comparison-slider/ics.php 92% from 13 tests
The main file in "Comparison Slider" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("comparison-slider.php" instead of "ics.php")
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
Success! There were no dangerous files found in this plugin37,330 lines of code in 381 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 258 | 2,802 | 9,296 | 21,710 |
JavaScript | 90 | 380 | 1,789 | 9,592 |
CSS | 32 | 229 | 309 | 3,357 |
SVG | 1 | 0 | 0 | 2,671 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 14.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 418.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 19 | |
Traits | 0 | |
Classes | 217 | |
▷ Abstract classes | 19 | 8.76% |
▷ Concrete classes | 198 | 91.24% |
▷ Final classes | 0 | 0.00% |
Methods | 1,665 | |
▷ Static methods | 268 | 16.10% |
▷ Public methods | 1,469 | 88.23% |
▷ Protected methods | 172 | 10.33% |
▷ Private methods | 24 | 1.44% |
Functions | 79 | |
▷ Named functions | 79 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 129 | |
▷ Global constants | 63 | 48.84% |
▷ Class constants | 66 | 51.16% |
▷ Public constants | 66 | 100.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
72 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/comparison/img/assets/close_btns/classy_grey.png | 2.47KB | 1.96KB | ▼ 20.51% |
img/down.png | 1.64KB | 1.50KB | ▼ 8.63% |
modules/comparison/img/assets/bullets/tick_blue.png | 1.41KB | 0.60KB | ▼ 57.48% |
css/images/ui-icons_cccccc_256x240.png | 6.81KB | 4.17KB | ▼ 38.71% |
js/bx-slider/images/arrows/thick10.png | 0.14KB | 0.17KB | 0.00% |