Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.61ms] Passed 4 tests
Analyzing server-side resources used by WP Awesome back to top
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 46.92 ▲7.88 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.59 ▼1.31 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.92 ▼0.78 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.03 ▼9.52 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.02 ▲1.19 |
AB2TOP Settings /wp-admin/options-general.php?page=ab2t-settings | 3.27 | 30.63 |
Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
ab2t_basics |
Browser metrics Passed 4 tests
Checking browser requirements for WP Awesome back to top
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.26 ▼0.09 | 1.73 ▲0.08 | 47.34 ▲11.44 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.14 | 92.03 ▼0.55 | 38.12 ▼3.57 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.01 | 39.25 ▲3.94 | 35.10 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.15 ▲0.11 | 646.00 ▲40.72 | 63.21 ▲14.98 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.00 | 95.86 ▲0.55 | 41.75 ▼2.87 |
AB2TOP Settings /wp-admin/options-general.php?page=ab2t-settings | 847 | 2.02 | 21.37 | 25.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- ab2t_basics
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: ab2t, top, back to top
wp-awesome-back-to-top/wp-awesome-back-to-top.php Passed 13 tests
The main PHP script in "WP Awesome back to top" version 1.2 is automatically included on every request by WordPress
44 characters long description:
An awesome back to top plugin for wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,131 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 574 | 195 | 1,537 |
PHP | 3 | 97 | 35 | 309 |
PO File | 3 | 719 | 1,603 | 147 |
CSS | 1 | 6 | 10 | 138 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 32 | |
▷ Static methods | 1 | 3.12% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
PNG images were not found in this plugin