Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.54ms] Passed 4 tests
An overview of server-side resources used by Sticky Genesis Topbar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.17 ▼7.62 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.18 ▼7.10 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.89 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 99.77 ▲3.93 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.81 ▼0.73 |
Sticky Topbar /wp-admin/admin.php?page=topbar-options | 3.23 | 42.39 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Sticky Genesis Topbar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲84 | 13.97 ▼0.45 | 2.42 ▲0.32 | 42.77 ▼7.20 |
Dashboard /wp-admin | 2,243 ▲55 | 5.24 ▼0.66 | 110.79 ▼2.85 | 38.73 ▼5.95 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.35 ▲0.32 | 37.37 ▼0.26 | 34.78 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,542 ▲3 | 23.39 ▼0.01 | 694.16 ▲27.20 | 37.66 ▼16.65 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.45 ▲0.28 | 101.87 ▲8.25 | 41.98 ▲0.18 |
Sticky Topbar /wp-admin/admin.php?page=topbar-options | 4,035 | 2.88 | 64.28 | 47.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/topbar-for-genesis/css.php
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: bbgcolor in wp-content/plugins/topbar-for-genesis/css.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/topbar-for-genesis/inc/admin.php:10
- > PHP Notice
Undefined variable: hide_social_on_mob in wp-content/plugins/topbar-for-genesis/css.php on line 32
- > PHP Notice
Undefined variable: tcolor in wp-content/plugins/topbar-for-genesis/css.php on line 13
- > PHP Notice
Undefined variable: t_height in wp-content/plugins/topbar-for-genesis/css.php on line 12
- > PHP Notice
Undefined variable: tccolor in wp-content/plugins/topbar-for-genesis/css.php on line 30
- > PHP Notice
Undefined variable: bgcolor in wp-content/plugins/topbar-for-genesis/css.php on line 11
- > PHP Notice
Undefined variable: tcolor in wp-content/plugins/topbar-for-genesis/css.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/topbar-for-genesis/sticky-genesis-topbar.php:13
- > PHP Warning
include(sticky_genesis_topbar_incadmin.php): failed to open stream: No such file or directory in wp-content/plugins/topbar-for-genesis/sticky-genesis-topbar.php on line 10
- > PHP Notice
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 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: utility bar, genesis, sticky topbar, studiopress, social media icons...
topbar-for-genesis/plugin.php 85% from 13 tests
The main file in "Sticky Genesis Topbar" v. 2.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("topbar-for-genesis.php" instead of "plugin.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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 plugin8,726 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 4,634 |
CSS | 3 | 89 | 28 | 2,959 |
PHP | 4 | 67 | 57 | 750 |
JavaScript | 3 | 45 | 52 | 219 |
PO File | 1 | 68 | 68 | 164 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 12 | |
▷ Named functions | 12 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ucard.png | 41.98KB | 16.25KB | ▼ 61.30% |