Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.12ms] Passed 4 tests
A check of server-side resources used by YTS Floating action button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.06 | 29.09 ▼14.86 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.47 ▼5.76 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.00 ▲6.56 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 91.03 ▼7.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.58 ▼0.70 |
YTS Floating action button /wp-admin/themes.php?page=yts-fab | 3.24 | 34.27 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for YTS Floating action button
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 13.60 ▼0.77 | 4.72 ▲2.84 | 38.32 ▼7.47 |
Dashboard /wp-admin | 2,214 ▲25 | 5.81 ▼0.07 | 100.13 ▼26.14 | 39.99 ▼9.10 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▲0.04 | 39.47 ▲0.64 | 36.73 ▲2.52 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.53 ▲0.16 | 588.60 ▼88.47 | 56.06 ▲2.86 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.11 ▼0.09 | 106.78 ▲13.45 | 44.80 ▲3.83 |
YTS Floating action button /wp-admin/themes.php?page=yts-fab | 1,074 | 3.01 | 39.30 | 71.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- 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
Good news, no errors were detected
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 fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/yts-floating-action-button/admin/partials/yts-fab-admin-display.php
- > /wp-content/plugins/yts-floating-action-button/public/partials/yts-fab-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: floating action button, fab, action button, whatsapp button
yts-floating-action-button/yts-fab.php 85% from 13 tests
The principal PHP file in "YTS Floating action button" v. 1.0.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yts-floating-action-button.php" instead of "yts-fab.php")
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 plugin515 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 160 | 536 | 426 |
JavaScript | 2 | 16 | 33 | 59 |
CSS | 2 | 5 | 9 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/placeholder.png | 12.50KB | 3.68KB | ▼ 70.52% |
public/placeholder.png | 12.50KB | 3.68KB | ▼ 70.52% |