Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲0.89ms] Passed 4 tests
This is a short check of server-side resources used by To Top
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 38.83 ▼0.67 |
Dashboard /wp-admin | 3.55 ▲0.24 | 50.82 ▲2.66 |
Posts /wp-admin/edit.php | 3.67 ▲0.30 | 50.31 ▲5.01 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 97.48 ▲2.49 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 35.63 ▼0.93 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for To Top
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲158 | 13.73 ▼0.61 | 9.25 ▲7.49 | 40.94 ▼2.75 |
Dashboard /wp-admin | 2,214 ▲37 | 5.58 ▼0.06 | 94.70 ▼5.87 | 42.22 ▲2.35 |
Posts /wp-admin/edit.php | 2,113 ▲16 | 1.96 ▲0.00 | 40.55 ▼0.40 | 38.16 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.24 ▲0.14 | 585.27 ▼79.28 | 53.88 ▲2.40 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.21 ▲0.02 | 97.20 ▼9.19 | 42.08 ▼2.04 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/to-top/admin/partials/customizer/customizer-custom-controls.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/to-top/admin/partials/to-top-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/to-top/admin/partials/to-top-dashboard.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/to-top/admin/inc/CatchThemesThemePlugin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/to-top/admin/partials/sidebar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/to-top/admin/partials/footer.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/to-top/admin/inc/ctp-tabs-removal.php:16
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
to-top/to-top.php 77% from 13 tests
"To Top" version 2.5.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
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
There were no executable files found in this plugin6,785 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 183 | 60 | 3,271 |
PHP | 17 | 428 | 722 | 1,645 |
SVG | 2 | 0 | 3 | 1,189 |
JavaScript | 5 | 76 | 24 | 423 |
PO File | 1 | 91 | 136 | 257 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 44 | 89.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.20% |
Functions | 9 | |
▷ Named functions | 9 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/premium-plugin-246x116.png | 9.01KB | 4.16KB | ▼ 53.83% |
admin/images/arrow-up.png | 1.35KB | 0.40KB | ▼ 70.17% |
admin/images/arrow-down.png | 1.36KB | 0.40KB | ▼ 70.40% |
admin/images/free-plugin-246x116.png | 8.01KB | 3.81KB | ▼ 52.42% |
admin/images/default.png | 5.58KB | 2.07KB | ▼ 62.83% |