Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.96ms] Passed 4 tests
Server-side resources used by Fixed Bottom Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.46 ▲10.33 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.05 ▼10.98 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.67 ▲1.55 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.24 ▼19.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.72 ▲1.48 |
Fixed Bottom Menu /wp-admin/options-general.php?page=fixedbottommenu | 3.21 | 29.94 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
fixedbottommenu_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fixed Bottom Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲90 | 14.35 ▲0.07 | 1.72 ▲0.01 | 47.72 ▲10.24 |
Dashboard /wp-admin | 2,199 ▲21 | 5.56 ▼0.09 | 81.06 ▼19.68 | 37.31 ▼0.82 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.95 ▼0.04 | 40.08 ▲3.84 | 36.95 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.59 ▲0.48 | 667.82 ▼32.97 | 52.56 ▼11.90 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▼0.02 | 97.89 ▲1.51 | 44.19 ▼1.71 |
Fixed Bottom Menu /wp-admin/options-general.php?page=fixedbottommenu | 1,784 | 2.62 | 62.96 | 25.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fixed-bottom-menu/lib/class-fixedbottommenuadmin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fixed-bottom-menu/lib/class-fixedbottommenu.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fixed-bottom-menu/lib/class-fixedbottommenu.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: footer, menu
fixed-bottom-menu/fixedbottommenu.php 92% from 13 tests
"Fixed Bottom Menu" version 1.30's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fixed-bottom-menu.php" instead of "fixedbottommenu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin923 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 96 | 191 | 817 |
CSS | 2 | 0 | 0 | 53 |
JavaScript | 2 | 11 | 36 | 53 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 6.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 68.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 31.58% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin