Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼5.75ms] Passed 4 tests
Server-side resources used by Back Top
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 44.15 ▼0.12 |
Dashboard /wp-admin | 4.00 ▲0.70 | 54.86 ▲0.07 |
Posts /wp-admin/edit.php | 4.04 ▲0.69 | 58.53 ▲5.67 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 73.55 ▼28.62 |
Media Library /wp-admin/upload.php | 3.89 ▲0.67 | 43.82 ▲5.70 |
Server storage [IO: ▲2.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 104 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
_cs_options |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Back Top
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,144 ▲398 | 15.40 ▲1.11 | 2.26 ▲0.52 | 40.18 ▼4.80 |
Dashboard /wp-admin | 2,512 ▲321 | 7.00 ▲1.12 | 137.19 ▲32.40 | 40.51 ▼0.27 |
Posts /wp-admin/edit.php | 2,418 ▲329 | 3.91 ▲1.85 | 54.68 ▲15.17 | 30.92 ▲0.36 |
Add New Post /wp-admin/post-new.php | 6,424 ▲4,900 | 26.63 ▲3.49 | 911.03 ▲330.84 | 47.52 ▼7.37 |
Media Library /wp-admin/upload.php | 1,551 ▲163 | 4.71 ▲0.53 | 127.21 ▲24.96 | 51.02 ▲6.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- _cs_options
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/back-top/includes/back-top-settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/back-top/includes/back-top-scripts.php:10
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (frontend.png), #2 (backend.png)
back-top/back-top.php Passed 13 tests
The main PHP file in "Back Top" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
Back to top option for your website. You can customize color, icon, text etc from setting page.
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
Good job! No executable or dangerous file extensions detected34,740 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 17,050 |
JavaScript | 9 | 1,083 | 794 | 4,597 |
CSS | 8 | 166 | 76 | 4,358 |
PHP | 50 | 1,099 | 1,044 | 3,099 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 6 | 341 | 0 | 2,083 |
PO File | 7 | 306 | 334 | 705 |
Markdown | 2 | 24 | 0 | 177 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 13.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 2 | 6.25% |
▷ Concrete classes | 30 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 5 | 5.05% |
▷ Public methods | 99 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
setting-page/assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
setting-page/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
setting-page/assets/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |