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: ▲0.19MB] [CPU: ▼2.23ms] Passed 4 tests
Analyzing server-side resources used by Sticky Topbar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.19 | 60.62 ▲16.83 |
Dashboard /wp-admin | 3.76 ▲0.20 | 52.94 ▲1.42 |
Posts /wp-admin/edit.php | 3.87 ▲0.19 | 51.97 ▼0.39 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.21 | 89.07 ▼9.72 |
Media Library /wp-admin/upload.php | 3.68 ▲0.19 | 40.24 ▼0.21 |
Sticky Topbar /wp-admin/options-general.php?page=topbar-options | 3.66 | 44.95 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sticky Topbar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 13.31 ▼1.00 | 7.85 ▲5.96 | 58.82 ▲12.11 |
Dashboard /wp-admin | 2,235 ▲58 | 5.87 ▲0.21 | 100.21 ▲6.44 | 47.28 ▲3.52 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.33 ▲0.24 | 35.89 ▼1.73 | 36.28 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,557 ▲12 | 23.32 ▲0.10 | 681.22 ▼3.62 | 36.75 ▼24.18 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.53 ▲0.43 | 110.16 ▼10.34 | 49.88 ▼0.05 |
Sticky Topbar /wp-admin/options-general.php?page=topbar-options | 2,829 | 2.69 | 67.78 | 41.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sticky-topbar/inc/css.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: tcolor in wp-content/plugins/sticky-topbar/inc/css.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-topbar/sticky-topbar.php:13
- > PHP Notice
Undefined variable: bgcolor in wp-content/plugins/sticky-topbar/inc/css.php on line 11
- > PHP Notice
Undefined variable: t_height in wp-content/plugins/sticky-topbar/inc/css.php on line 12
- > PHP Notice
Undefined variable: hide_social_on_mob in wp-content/plugins/sticky-topbar/inc/css.php on line 21
- > PHP Warning
Use of undefined constant sticky_topbar_inc - assumed 'sticky_topbar_inc' (this will throw an Error in a future version of PHP) in wp-content/plugins/sticky-topbar/sticky-topbar.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-topbar/inc/admin.php:10
- > PHP Warning
include(sticky_topbar_incadmin.php): failed to open stream: No such file or directory in wp-content/plugins/sticky-topbar/sticky-topbar.php on line 10
- > PHP Notice
Undefined variable: tcolor in wp-content/plugins/sticky-topbar/inc/css.php on line 13
- > PHP Notice
Undefined variable: font_size in wp-content/plugins/sticky-topbar/inc/css.php on line 16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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: alert message bar, social media icons, utility bar, notification bar, sticky topbar...
sticky-topbar/plugin.php 85% from 13 tests
Analyzing the main PHP file in "Sticky Topbar" version 2.0.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sticky-topbar.php" instead of "plugin.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin6,154 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 49 | 28 | 2,647 |
PHP | 4 | 54 | 48 | 657 |
JavaScript | 3 | 47 | 59 | 179 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
No PNG images were found in this plugin