Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▲3.61ms] Passed 4 tests
Analyzing server-side resources used by Custom top bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 49.64 ▲0.05 |
Dashboard /wp-admin | 3.39 ▲0.08 | 52.97 ▲3.28 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 57.40 ▲6.73 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 104.32 ▲5.93 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 40.90 ▲5.19 |
Top Bar Setting /wp-admin/edit.php?post_type=social-post&page=ctb_fallback_setting | 3.29 | 44.31 |
Add New Social Link /wp-admin/post-new.php?post_type=social-post | 3.16 | 40.04 |
Top Bar Section /wp-admin/edit.php?post_type=social-post | 3.33 | 42.89 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Custom top bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.35 ▼1.32 | 1.57 ▼0.31 | 39.60 ▼8.60 |
Dashboard /wp-admin | 2,257 ▲69 | 5.05 ▲0.15 | 108.39 ▲0.65 | 41.47 ▲0.04 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.31 ▲0.35 | 39.95 ▼1.80 | 36.63 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,563 ▲26 | 18.48 ▼4.57 | 588.69 ▼81.23 | 35.53 ▼16.35 |
Media Library /wp-admin/upload.php | 1,433 ▲48 | 4.40 ▲0.23 | 101.41 ▼0.82 | 41.89 ▼2.02 |
Top Bar Setting /wp-admin/edit.php?post_type=social-post&page=ctb_fallback_setting | 1,195 | 2.24 | 51.63 | 26.33 |
Add New Social Link /wp-admin/post-new.php?post_type=social-post | 1,696 | 3.93 | 68.95 | 37.23 |
Top Bar Section /wp-admin/edit.php?post_type=social-post | 1,103 | 2.25 | 33.40 | 30.51 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=social-post
- > Notice in wp-content/plugins/custom-top-bar/top-bar.php+106
Undefined index: social_link
- > GET request to /wp-admin/post-new.php?post_type=social-post
- > Warning in wp-content/plugins/custom-top-bar/top-bar.php+121
Use of undefined constant ctb_do_thumb - assumed 'ctb_do_thumb' (this will throw an Error in a future version of PHP)
SRP 50% 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
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-top-bar/setting.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-top-bar/top_bar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-top-bar/top-bar.php:26
- > PHP Fatal error
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 86% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
- License uri: Please fix this invalid url: ""
- Screenshots: These screenshots lack descriptions #1, #2, #3 in custom-top-bar/assets to your readme.txt
custom-top-bar/top-bar.php 92% from 13 tests
"Custom top bar" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-top-bar.php" instead of "top-bar.php")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected352 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 41 | 20 | 270 |
CSS | 1 | 1 | 1 | 82 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 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 files were detected