Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.12ms] Passed 4 tests
An overview of server-side resources used by Back to top-up
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.25 ▲2.44 |
Dashboard /wp-admin | 3.38 ▲0.04 | 61.31 ▼4.82 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.94 ▲1.39 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.95 ▼18.97 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.42 ▲1.93 |
All Scrolls /wp-admin/edit.php?post_type=wstr | 3.36 | 41.20 |
Add New Scroll /wp-admin/post-new.php?post_type=wstr | 3.39 | 49.82 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Back to top-up
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,045 ▲284 | 14.72 ▲0.45 | 5.43 ▲3.75 | 42.74 ▼0.59 |
Dashboard /wp-admin | 2,362 ▲182 | 6.17 ▲0.46 | 107.94 ▲20.45 | 37.57 ▼3.32 |
Posts /wp-admin/edit.php | 2,296 ▲196 | 3.30 ▲1.29 | 51.41 ▲13.87 | 34.79 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 22.94 ▼0.11 | 671.14 ▲0.40 | 38.02 ▼11.93 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.14 ▼0.13 | 78.79 ▼29.38 | 43.23 ▼5.43 |
All Scrolls /wp-admin/edit.php?post_type=wstr | 1,269 | 3.31 | 44.48 | 27.58 |
Add New Scroll /wp-admin/post-new.php?post_type=wstr | 2,048 | 3.74 | 61.28 | 87.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/back-to-top-up/admin/admin_page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/back-to-top-up/roll.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/back-to-top-up/admin/admin_page_post.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wstr
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=wstr 357 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #2, #3, #4 in back-to-top-up/assets to your readme.txt
back-to-top-up/roll.php 92% from 13 tests
The main PHP script in "Back to top-up" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("back-to-top-up.php" instead of "roll.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin28 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 4 | 6 | 23 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 7 | 33.33% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.38MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/scroll_up_12.png | 17.13KB | 7.59KB | ▼ 55.68% |
images/scroll_up_6.png | 3.30KB | 3.23KB | ▼ 2.25% |
(invalid) images/scroll_up_11.png | 109.63KB | 0.00KB | ▼ 100.00% |
images/scroll_up_13.png | 15.49KB | 16.33KB | 0.00% |
images/scroll_up_9.png | 7.26KB | 4.76KB | ▼ 34.43% |