Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲0.65ms] Passed 4 tests
An overview of server-side resources used by Click to top
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 38.39 ▼3.02 |
Dashboard /wp-admin | 3.84 ▲0.54 | 53.59 ▲3.65 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 55.87 ▲3.69 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 86.99 ▼1.71 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 40.89 ▲6.76 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
click_top_basic |
widget_recent-posts |
click_top_style |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Click to top
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,124 ▲362 | 15.07 ▲0.36 | 8.67 ▲7.03 | 33.02 ▼9.75 |
Dashboard /wp-admin | 2,405 ▲225 | 6.43 ▲0.89 | 123.81 ▲24.33 | 55.70 ▲10.41 |
Posts /wp-admin/edit.php | 2,338 ▲238 | 3.63 ▲1.67 | 57.47 ▲17.49 | 49.64 ▲10.24 |
Add New Post /wp-admin/post-new.php | 1,588 ▲62 | 23.51 ▼0.02 | 617.33 ▲8.40 | 34.90 ▼21.87 |
Media Library /wp-admin/upload.php | 1,475 ▲75 | 4.37 ▲0.08 | 91.92 ▼6.54 | 53.49 ▲12.23 |
Click to top /wp-admin/click-to-top.php | 26 | 0.41 | 0.09 | 13.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- click_top_style
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- click_top_basic
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(wp-content/plugins/click-to-top/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/click-to-top/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/click-to-top/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/click-to-top/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/click-to-top/admin/click_top_options.php:388
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/click-to-top/includes/click_top_options_set.php:148
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/click-to-top/admin/nt-class.php:150
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/click-to-top.php
- > Network (severe)
wp-admin/click-to-top.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
click-to-top/click-to-top.php 92% from 13 tests
"Click to top" version 1.2.22's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected9,162 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 353 | 151 | 4,407 |
PHP | 20 | 762 | 1,346 | 3,209 |
SVG | 1 | 0 | 0 | 655 |
JavaScript | 3 | 27 | 93 | 269 |
Markdown | 1 | 82 | 0 | 255 |
PO File | 1 | 54 | 54 | 127 |
JSON | 3 | 0 | 0 | 113 |
XML | 1 | 6 | 11 | 95 |
YAML | 1 | 6 | 0 | 32 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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 | 36.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 167 | |
▷ Static methods | 20 | 11.98% |
▷ Public methods | 130 | 77.84% |
▷ Protected methods | 6 | 3.59% |
▷ Private methods | 31 | 18.56% |
Functions | 12 | |
▷ Named functions | 9 | 75.00% |
▷ Anonymous functions | 3 | 25.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected