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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.36ms] Passed 4 tests
This is a short check of server-side resources used by Scroll Up Iron Man
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.08 ▼1.31 |
Dashboard /wp-admin | 3.33 ▼0.01 | 47.11 ▼20.28 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.03 ▼7.41 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.46 ▼11.44 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.40 ▼2.31 |
Iron Man Scroll Up /wp-admin/options-general.php?page=irsu | 3.22 | 32.87 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Scroll Up Iron Man
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲143 | 13.43 ▼0.85 | 12.35 ▲10.68 | 44.07 ▼0.77 |
Dashboard /wp-admin | 2,196 ▲16 | 5.56 ▼0.09 | 93.88 ▲2.32 | 41.03 ▲3.32 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.99 ▼0.01 | 38.64 ▼8.21 | 35.65 ▲2.27 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.22 ▲0.06 | 661.43 ▼44.23 | 64.96 ▲13.69 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▼0.03 | 98.78 ▼15.53 | 48.24 ▼2.72 |
Iron Man Scroll Up /wp-admin/options-general.php?page=irsu | 834 | 1.99 | 28.71 | 28.68 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-up-iron-man/scroll-up-iron-man.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: scroll, button
scroll-up-iron-man/scroll-up-iron-man.php Passed 13 tests
This is the main PHP file of "Scroll Up Iron Man" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Animated scroll up button in the form of an Marvel Iron Man.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin195 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 17 | 3 | 94 |
PHP | 1 | 18 | 21 | 61 |
CSS | 1 | 1 | 3 | 40 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
add/sprites/up2.png | 38.86KB | 7.14KB | ▼ 81.63% |
add/sprites/up3.png | 44.83KB | 19.04KB | ▼ 57.54% |
add/sprites/up.png | 8.37KB | 8.36KB | 0.04% |