Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.51ms] Passed 4 tests
An overview of server-side resources used by Click to Call, SMS, Messages, Email and 40+ social icons - GP Sticky buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.24 ▲0.60 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.13 ▼3.97 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.40 ▼6.65 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.95 ▼12.03 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.39 ▲2.71 |
Contact Us /wp-admin/admin.php?page=gp-sticky-buttons-contact-us | 3.29 | 34.08 |
Dashboard /wp-admin/admin.php?page=gp-sticky-buttons | 3.40 | 34.84 |
Server storage [IO: ▲5.83MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Click to Call, SMS, Messages, Email and 40+ social icons - GP Sticky buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.24 ▼0.03 | 1.76 ▼0.03 | 37.34 ▼3.00 |
Dashboard /wp-admin | 2,222 ▲45 | 5.62 ▼0.04 | 90.89 ▼3.55 | 37.53 ▼8.65 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.03 ▲0.06 | 39.53 ▲4.32 | 34.94 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,555 ▲18 | 22.90 ▲4.52 | 655.04 ▼5.83 | 54.34 ▼7.86 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.17 ▼0.01 | 95.97 ▼3.56 | 44.58 ▼0.18 |
Contact Us /wp-admin/admin.php?page=gp-sticky-buttons-contact-us | 883 | 2.00 | 28.32 | 66.35 |
Dashboard /wp-admin/admin.php?page=gp-sticky-buttons | 1,263 | 2.22 | 41.52 | 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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 13× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/gp-sticky-buttons/admin/templates/widget-preview.php
- > /wp-content/plugins/gp-sticky-buttons/index.php
- > /wp-content/plugins/gp-sticky-buttons/admin/templates/admin-dashboard.php
- > /wp-content/plugins/gp-sticky-buttons/includes/front-end.php
- > /wp-content/plugins/gp-sticky-buttons/admin/admin.php
- > /wp-content/plugins/gp-sticky-buttons/admin/templates/triggers.php
- > /wp-content/plugins/gp-sticky-buttons/admin/templates/admin-help.php
- > /wp-content/plugins/gp-sticky-buttons/admin/templates/admin-settings.php
- > /wp-content/plugins/gp-sticky-buttons/includes/settings.php
- > /wp-content/plugins/gp-sticky-buttons/admin/templates/other-settings.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 3
- > PHP Notice
Undefined variable: settings in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 4
- > PHP Notice
Undefined variable: settings in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 2
- > PHP Notice
Undefined variable: settings in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_is_mobile() in wp-content/plugins/gp-sticky-buttons/templates/template.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: facebook messenger, social buttons, call now button, viber, instagram...
gp-sticky-buttons/index.php 92% from 13 tests
The entry point to "Click to Call, SMS, Messages, Email and 40+ social icons - GP Sticky buttons" version 1.0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gp-sticky-buttons.php" instead of "index.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
There were no executable files found in this plugin13,465 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,061 |
PHP | 14 | 275 | 388 | 3,999 |
JavaScript | 10 | 39 | 41 | 388 |
HTML | 1 | 1 | 0 | 9 |
CSS | 8 | 0 | 4 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 11 | 28.21% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin