Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼11.33ms] Passed 4 tests
Server-side resources used by Dynamic "To Top" Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.35 ▼0.11 | 7.68 ▼34.84 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.13 ▲1.82 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 46.84 ▼2.31 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 88.41 ▼9.97 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.37 ▲3.99 |
To Top /wp-admin/themes.php?page=dynamic-to-top/inc/dynamic-to-top-options.php | 3.28 | 30.30 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Dynamic "To Top" Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲190 | 13.76 ▼1.05 | 7.10 ▲5.52 | 38.72 ▼3.58 |
Dashboard /wp-admin | 2,213 ▲25 | 5.90 ▲1.02 | 102.37 ▼6.64 | 36.71 ▼5.29 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▼0.05 | 33.79 ▼2.96 | 33.76 ▲3.30 |
Add New Post /wp-admin/post-new.php | 1,522 ▲2 | 23.30 ▲0.10 | 615.87 ▼4.36 | 56.68 ▲0.59 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.26 ▲0.05 | 94.72 ▼5.61 | 42.46 ▼3.16 |
To Top /wp-admin/themes.php?page=dynamic-to-top/inc/dynamic-to-top-options.php | 1,233 | 2.24 | 47.88 | 45.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=dynamic-to-top/inc/dynamic-to-top-options.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=dynamic-to-top/inc/dynamic-to-top-options.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-to-top/inc/dynamic-to-top-options.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-to-top/dynamic-to-top.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-to-top/inc/dynamic-to-top-class.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: enhance, jquery, automatic, ux, button...
dynamic-to-top/dynamic-to-top.php Passed 13 tests
This is the main PHP file of "Dynamic "To Top" Plugin" version 3.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
Adds an automatic and dynamic "To Top" button to scroll long pages back to the top.
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
Success! There were no dangerous files found in this plugin5,549 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 372 | 2,767 | 3,388 |
JavaScript | 8 | 192 | 140 | 1,159 |
PO File | 6 | 365 | 345 | 837 |
CSS | 2 | 24 | 32 | 165 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 8.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 10 | 14.49% |
▷ Concrete classes | 59 | 85.51% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 12 | 7.45% |
▷ Public methods | 156 | 96.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.11% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/images/up.png | 2.87KB | 0.24KB | ▼ 91.70% |
css/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |