Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.56ms] Passed 4 tests
Server-side resources used by Floating Admin Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.47 ▲4.30 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.46 ▼0.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.53 ▼0.63 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.17 ▼9.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.45 ▼0.20 |
Floating Admin Button /wp-admin/options-general.php?page=fab_settings | 3.31 | 30.34 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
fab_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Floating Admin Button
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,990 ▲229 | 13.88 ▼0.67 | 14.11 ▲12.60 | 43.84 ▲2.02 |
Dashboard /wp-admin | 2,199 ▲19 | 5.60 ▼0.01 | 91.15 ▲3.63 | 40.10 ▼0.18 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.97 ▼0.04 | 38.22 ▲2.49 | 39.42 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 22.29 ▼1.46 | 668.79 ▲15.59 | 56.10 ▲7.47 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.14 ▼0.06 | 93.56 ▼13.27 | 45.68 ▲1.03 |
Floating Admin Button /wp-admin/options-general.php?page=fab_settings | 1,157 | 2.05 | 27.26 | 43.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- fab_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please 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/floating-admin-button/floating-admin-button.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: frontend, admin panel, jquery, tool, button...
floating-admin-button/floating-admin-button.php Passed 13 tests
The entry point to "Floating Admin Button" version 1.1.2 is a PHP file that has certain tags in its header comment area
84 characters long description:
On frontend pages this plugin shows a floating admin button instead of the admin bar
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected764 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 94 | 413 |
JavaScript | 4 | 28 | 72 | 172 |
PO File | 1 | 202 | 404 | 113 |
CSS | 2 | 0 | 12 | 66 |
PHP code Passed 2 tests
This is a very shot review of 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.31 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wp_logo.png | 3.67KB | 2.15KB | ▼ 41.46% |