Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼309.09ms] Passed 4 tests
An overview of server-side resources used by WordPress CTA - WordPress Call To Action, Floating Content Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.51 | 77.08 ▲11.51 |
Dashboard /wp-admin | 3.97 ▲0.56 | 42.77 ▼0.63 |
Posts /wp-admin/edit.php | 4.26 ▲0.61 | 51.90 ▼31.05 |
Add New Post /wp-admin/post-new.php | 7.50 ▲0.53 | 117.90 ▼1,209.90 |
Media Library /wp-admin/upload.php | 3.92 ▲0.62 | 39.83 ▲5.24 |
WP CTA Dashboard /wp-admin/admin.php?page=easy-sticky-sidebars | 3.93 | 38.80 |
Edit CTA /wp-admin/admin.php?page=edit-easy-sticky-sidebar | 3.90 | 34.18 |
Add New /wp-admin/admin.php?page=add-easy-sticky-sidebar | 3.96 | 37.01 |
Server storage [IO: ▲1.76MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 46 new files
Database: 2 new tables, 2 new options
New tables |
---|
wp_sticky_cta |
wp_sticky_cta_options |
New WordPress options |
---|
easy_sticky_sidebar_default_attachment |
easy_sticky_sidebar_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress CTA - WordPress Call To Action, Floating Content Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,057 ▲315 | 16.30 ▲0.77 | 13.62 ▲3.12 | 3.74 ▲0.74 |
Dashboard /wp-admin | 3,040 ▲91 | 6.36 ▼0.12 | 191.17 ▼36.46 | 198.79 ▼83.27 |
Posts /wp-admin/edit.php | 2,802 ▲84 | 3.56 ▲0.13 | 101.58 ▼16.78 | 172.45 ▼28.86 |
Add New Post /wp-admin/post-new.php | 1,716 ▲72 | 17.06 ▼2.33 | 647.98 ▼46.07 | 208.98 ▼12.44 |
Media Library /wp-admin/upload.php | 1,841 ▲111 | 5.89 ▲0.18 | 198.19 ▲11.99 | 229.76 ▼20.12 |
WP CTA Dashboard /wp-admin/admin.php?page=easy-sticky-sidebars | 1,695 | 5.71 | 126.85 | 205.47 |
Edit CTA /wp-admin/admin.php?page=edit-easy-sticky-sidebar | 1,424 | 5.39 | 110.95 | 150.96 |
Add New /wp-admin/admin.php?page=add-easy-sticky-sidebar | 21,462 | 13.46 | 412.47 | 259.14 |
Uninstaller [IO: ▲1.08MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_sticky_cta
- wp_sticky_cta_options
- The uninstall procedure has failed, leaving 2 options in the database
- easy_sticky_sidebar_version
- easy_sticky_sidebar_default_attachment
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=edit-easy-sticky-sidebar
- > Notice in wp-content/plugins/easy-sticky-sidebar/inc/ClassAdminOptions.php+95
Undefined index: id
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-sticky-sidebar/views/view-tab-cta.php
- 43× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: ctacontent in wp-content/plugins/easy-sticky-sidebar/views/view.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-sticky-sidebar/inc/ClassGenerateStyle.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-sticky-sidebar/inc/ClassQuery.php:28
- > PHP Notice
Undefined variable: ctacontent in wp-content/plugins/easy-sticky-sidebar/views/view-tab-cta.php on line 17
- > PHP Notice
Trying to get property 'tab_cta_target_blank' of non-object in wp-content/plugins/easy-sticky-sidebar/views/view-tab-cta.php on line 7
- > PHP Warning
array_push() expects parameter 1 to be array, null given in wp-content/plugins/easy-sticky-sidebar/views/view-tab-cta.php on line 3
- > PHP Warning
array_push() expects parameter 1 to be array, null given in wp-content/plugins/easy-sticky-sidebar/views/view.php on line 8
- > PHP Notice
Trying to get property 'SSuprydp_action_option_url' of non-object in wp-content/plugins/easy-sticky-sidebar/views/view.php on line 11
- > PHP Notice
Undefined variable: ctacontent in wp-content/plugins/easy-sticky-sidebar/views/view-tab-cta.php on line 7
- > PHP Notice
Undefined variable: ctacontent in wp-content/plugins/easy-sticky-sidebar/views/view-tab-cta.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (20 tag instead of maximum 10)
easy-sticky-sidebar/sticky-sidebar.php 77% from 13 tests
The main file in "WordPress CTA - WordPress Call To Action, Floating Content Plugin" v. 1.4.4 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: Please rename the main PHP file in this plugin to the plugin slug ("easy-sticky-sidebar.php" instead of "sticky-sidebar.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin13,316 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 285 | 63 | 8,471 |
PHP | 19 | 830 | 961 | 3,094 |
JavaScript | 6 | 134 | 40 | 1,581 |
Markdown | 1 | 57 | 0 | 149 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 23.75 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 143 | |
▷ Static methods | 3 | 2.10% |
▷ Public methods | 109 | 76.22% |
▷ Protected methods | 6 | 4.20% |
▷ Private methods | 28 | 19.58% |
Functions | 51 | |
▷ Named functions | 48 | 94.12% |
▷ Anonymous functions | 3 | 5.88% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ads.png | 72.00KB | 25.83KB | ▼ 64.12% |
assets/fs-sprite.png | 1.07KB | 0.18KB | ▼ 82.82% |