Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.92MB] [CPU: ▲28.84ms] Passed 4 tests
Server-side resources used by Floating Icons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.54 ▲3.08 | 74.50 ▲37.94 |
Dashboard /wp-admin | 6.27 ▲2.92 | 74.07 ▲14.15 |
Posts /wp-admin/edit.php | 6.30 ▲2.94 | 77.44 ▲31.51 |
Add New Post /wp-admin/post-new.php | 8.83 ▲2.94 | 130.12 ▲38.98 |
Media Library /wp-admin/upload.php | 6.13 ▲2.90 | 68.97 ▲31.76 |
Redux /wp-admin/options-general.php?page=redux-framework | 6.12 | 71.43 |
Server storage [IO: ▲8.88MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 853 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
omfe_opts |
theysaidso_admin_options |
omfe_opts-transients |
db_upgraded |
widget_recent-posts |
omfe_install_date |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Floating Icons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲187 | 14.28 ▼0.07 | 2.53 ▲1.00 | 34.78 ▼2.52 |
Dashboard /wp-admin | 2,259 ▲79 | 5.61 ▼0.07 | 85.19 ▼0.56 | 88.30 ▲45.88 |
Posts /wp-admin/edit.php | 2,194 ▲94 | 2.03 ▼0.01 | 40.64 ▲4.94 | 35.08 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 18.18 ▼5.36 | 640.34 ▼59.78 | 62.75 ▼2.63 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.27 ▲0.08 | 94.55 ▼5.16 | 42.76 ▲0.28 |
Redux /wp-admin/options-general.php?page=redux-framework | 1,022 | 3.31 | 69.67 | 84.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- omfe_opts-transients
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 48× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/floating-icons/adminside/admin/redux-framework/redux-core/inc/fields/date/field_date.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/floating-icons/adminside/admin/redux-framework/redux-core/inc/fields/image_select/field_image_select.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/floating-icons/adminside/admin/redux-framework/redux-core/core/newsflash.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/floating-icons/adminside/admin/redux-framework/redux-core/templates/panel/header.tpl.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/floating-icons/adminside/admin/redux-framework/redux-core/inc/fields/border/field_border.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/floating-icons/adminside/admin/redux-framework/redux-core/templates/panel/content.tpl.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/floating-icons/adminside/admin/redux-framework/redux-core/templates/panel/header-stickybar.tpl.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floating-icons/adminside/admin/tgm-init.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/floating-icons/adminside/admin/redux-framework/redux-core/inc/fields/spinner/field_spinner.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/floating-icons/adminside/admin/redux-framework/redux-core/inc/fields/divide/field_divide.php:8
- > PHP Fatal 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: floating, moving icons, christmas trees, special effects, floating icons...
floating-icons/floating-icons.php 92% from 13 tests
The main file in "Floating Icons" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 217 characters long)
Code Analysis 97% from 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
No dangerous file extensions were detected81,108 lines of code in 573 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 215 | 7,160 | 12,807 | 28,430 |
JavaScript | 142 | 6,155 | 3,364 | 25,760 |
CSS | 111 | 6,689 | 325 | 12,709 |
Sass | 97 | 1,872 | 79 | 12,601 |
SVG | 7 | 0 | 0 | 1,601 |
XML | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 37.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 322.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 148 | |
▷ Abstract classes | 4 | 2.70% |
▷ Concrete classes | 144 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,087 | |
▷ Static methods | 293 | 26.95% |
▷ Public methods | 851 | 78.29% |
▷ Protected methods | 140 | 12.88% |
▷ Private methods | 96 | 8.83% |
Functions | 37 | |
▷ Named functions | 32 | 86.49% |
▷ Anonymous functions | 5 | 13.51% |
Constants | 111 | |
▷ Global constants | 5 | 4.50% |
▷ Class constants | 106 | 95.50% |
▷ Public constants | 106 | 100.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
53 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
adminside/admin/redux-framework/redux-core/assets/img/jquery-ui-bootstrap/ui-icons_ffffff_256x240.png | 4.10KB | 4.11KB | 0.00% |
adminside/admin/redux-framework/redux-core/assets/img/jquery-ui-bootstrap/ui-icons_cd0a0a_256x240.png | 4.10KB | 4.11KB | 0.00% |
adminside/admin/redux-framework/redux-core/assets/img/jquery-ui-bootstrap/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
adminside/admin/redux-framework/redux-core/assets/img/3cm.png | 0.30KB | 0.29KB | ▼ 3.93% |
adminside/admin/redux-framework/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |