Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▼5.29ms] Passed 4 tests
A check of server-side resources used by AR Back To Top
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.44 | 49.78 ▲5.73 |
Dashboard /wp-admin | 3.77 ▲0.42 | 56.13 ▼14.85 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 56.14 ▲5.68 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 88.85 ▼13.86 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 42.89 ▲1.89 |
AR Back To Top /wp-admin/admin.php?page=arbtt | 3.57 | 38.31 |
Settings /wp-admin/admin.php?page=arbtt-settings | 3.59 | 36.07 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for AR Back To Top
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲176 | 13.81 ▼0.39 | 9.93 ▲8.00 | 42.13 ▼1.67 |
Dashboard /wp-admin | 2,246 ▲72 | 5.49 ▼0.10 | 93.10 ▼9.05 | 38.53 ▼7.59 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.11 ▲0.13 | 37.02 ▼1.75 | 36.31 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,572 ▲46 | 23.39 ▲0.29 | 688.39 ▲19.62 | 70.20 ▲11.07 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.15 ▼0.05 | 111.87 ▲3.87 | 49.48 ▲0.92 |
AR Back To Top /wp-admin/admin.php?page=arbtt | 1,286 | 2.25 | 35.32 | 35.22 |
Settings /wp-admin/admin.php?page=arbtt-settings | 893 | 2.16 | 25.33 | 27.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/ar-back-to-top/vendor/appsero/client/src/Client.php+164
require_once(wp-content/plugins/ar-back-to-top/vendor/appsero/client/src/License.php): failed to open stream: No such file or directory
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=arbtt
- > Notice in wp-content/plugins/ar-back-to-top/ar-back-to-top.php+233
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ar-back-to-top/ar-back-to-top.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ar-back-to-top/inc/Frontend.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ar-back-to-top/inc/Settings.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ar-back-to-top/inc/assets.php:2
- > PHP Warning
require_once(wp-content/plugins/ar-back-to-top/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/ar-back-to-top/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/ar-back-to-top/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/ar-back-to-top/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 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: smooth scroll, scroll up, scroll back to top, back to top, scroll to top...
ar-back-to-top/ar-back-to-top.php 85% from 13 tests
The main PHP script in "AR Back To Top" version 2.10.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin6,324 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 664 | 1,313 | 2,773 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 38 | 12 | 387 |
Markdown | 1 | 82 | 0 | 255 |
JSON | 2 | 0 | 0 | 108 |
XML | 1 | 6 | 11 | 95 |
YAML | 1 | 6 | 0 | 32 |
JavaScript | 3 | 0 | 7 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 30.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 149 | |
▷ Static methods | 22 | 14.77% |
▷ Public methods | 108 | 72.48% |
▷ Protected methods | 8 | 5.37% |
▷ Private methods | 33 | 22.15% |
Functions | 35 | |
▷ Named functions | 33 | 94.29% |
▷ Anonymous functions | 2 | 5.71% |
Constants | 6 | |
▷ Global constants | 6 | 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
8 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/arbtt6.png | 3.29KB | 1.83KB | ▼ 44.21% |
assets/minicolors/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
assets/images/arbtt2.png | 3.75KB | 3.35KB | ▼ 10.58% |
assets/images/arbtt.png | 4.07KB | 1.94KB | ▼ 52.26% |
assets/images/Back-to-Top.png | 10.04KB | 4.61KB | ▼ 54.10% |