Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼14.95ms] Passed 4 tests
An overview of server-side resources used by Sticky Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 24.32 ▼15.90 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.35 ▼11.33 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.31 ▼8.14 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.50 ▼24.41 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 32.34 ▼0.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Sticky Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.63 ▼0.77 | 1.75 ▼0.10 | 43.22 ▲0.01 |
Dashboard /wp-admin | 2,203 ▲15 | 5.82 ▼0.09 | 93.94 ▼7.05 | 35.97 ▼9.89 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 1.99 ▼0.01 | 37.39 ▼3.66 | 31.54 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.33 ▲0.13 | 597.87 ▼79.83 | 46.37 ▼7.09 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.13 ▼0.09 | 100.81 ▲5.64 | 42.31 ▼0.97 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/sticky-bar/customizer/content.php on line 3
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/sticky-bar/customizer/colors.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/sticky-bar/customizer/content.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/sticky-bar/customizer/animations.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sticky-bar/inc/render.php:30
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/sticky-bar/customizer/display.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-bar/customizer/add_customize_options.php:41
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/sticky-bar/customizer/colors.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sticky-bar/sticky-bar.php:13
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/sticky-bar/customizer/animations.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
4 plugin tags: sticky-bar, notification, customizer, bar
sticky-bar/sticky-bar.php 92% from 13 tests
The principal PHP file in "Sticky Bar" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin490 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 64 | 22 | 378 |
JavaScript | 2 | 7 | 6 | 70 |
CSS | 1 | 7 | 4 | 42 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin