Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.46ms] Passed 4 tests
This is a short check of server-side resources used by Call-To-Action Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.68 ▲5.39 |
Dashboard /wp-admin | 3.36 ▲0.05 | 43.93 ▼5.61 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.53 ▲3.30 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.60 ▼5.12 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.18 ▲1.58 |
Call-To-Action Bar /wp-admin/options-general.php?page=call-to-action-bar-options | 3.26 | 30.29 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-comments |
ctab_bar_background_color |
ctab_able_to_dismiss |
ctab_call_to_action_background_color |
ctab_bar_text_color |
can_compress_scripts |
ctab_call_to_action_text_color |
widget_recent-posts |
theysaidso_admin_options |
ctab_general_text |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Call-To-Action Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.69 ▼0.73 | 5.22 ▲3.61 | 44.78 ▲4.28 |
Dashboard /wp-admin | 2,215 ▲30 | 5.88 ▲0.07 | 95.22 ▼4.30 | 35.58 ▼9.09 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.17 ▲0.12 | 38.75 ▲2.11 | 34.90 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,678 ▲155 | 22.38 ▼0.89 | 663.73 ▼19.81 | 69.32 ▲12.26 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.20 ▼0.02 | 95.50 ▼4.46 | 44.82 ▼3.07 |
Call-To-Action Bar /wp-admin/options-general.php?page=call-to-action-bar-options | 1,101 | 1.95 | 32.69 | 38.56 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/call-to-action-bar/bar-wrapper.php
- > /wp-content/plugins/call-to-action-bar/bar-template.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant CALL_TO_ACTION_BAR__PLUGIN_DIR - assumed 'CALL_TO_ACTION_BAR__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/call-to-action-bar/bar-wrapper.php on line 2
- > PHP Notice
Undefined variable: ctab_call_to_action_text in wp-content/plugins/call-to-action-bar/bar-template.php on line 13
- > PHP Notice
Undefined variable: ctab_general_text in wp-content/plugins/call-to-action-bar/bar-template.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/call-to-action-bar/options.php:9
- > PHP Notice
Undefined variable: ctab_call_to_action_url in wp-content/plugins/call-to-action-bar/bar-template.php on line 12
- > PHP Notice
Undefined variable: ctab_bar_text_color in wp-content/plugins/call-to-action-bar/bar-template.php on line 2
- > PHP Notice
Undefined variable: ctab_call_to_action_text_color in wp-content/plugins/call-to-action-bar/bar-template.php on line 12
- > PHP Notice
Undefined variable: ctab_call_to_action_background_color in wp-content/plugins/call-to-action-bar/bar-template.php on line 12
- > PHP Warning
include(): Failed opening 'CALL_TO_ACTION_BAR__PLUGIN_DIRbar-template.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/call-to-action-bar/bar-wrapper.php on line 2
- > PHP Notice
Undefined variable: ctab_bar_background_color in wp-content/plugins/call-to-action-bar/bar-template.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
3 plugin tags: top bar, sticky bar, call-to-action
call-to-action-bar/call-to-action-bar.php 92% from 13 tests
Analyzing the main PHP file in "Call-To-Action Bar" version 1.0.1
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 260 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin580 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 38 | 18 | 262 |
PHP | 5 | 44 | 29 | 243 |
JavaScript | 3 | 23 | 32 | 75 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/css/jquery.minicolors.png | 75.64KB | 34.31KB | ▼ 54.64% |