Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/floating-social-media-links/floating-social-media-links.php+46
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.24MB] [CPU: ▼5.27ms] Passed 4 tests
This is a short check of server-side resources used by Floating Social Media Links
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 29.49 ▼15.41 |
Dashboard /wp-admin | 3.57 ▲0.27 | 52.47 ▼4.25 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 52.50 ▼2.21 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 91.43 ▲0.78 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 39.31 ▲5.28 |
Floating Social Media Links /wp-admin/options-general.php?page=floating-social-media-links/floating-social-media-links.php | 3.49 | 40.93 |
Server storage [IO: ▲0.23MB] [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: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
fsml_options |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Floating Social Media Links
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.30 ▼1.09 | 4.83 ▲2.71 | 44.06 ▼1.23 |
Dashboard /wp-admin | 2,204 ▲16 | 5.92 ▲1.02 | 103.94 ▼15.10 | 40.50 ▼3.81 |
Posts /wp-admin/edit.php | 2,090 ▼3 | 2.02 ▼0.06 | 37.09 ▼4.59 | 32.42 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.15 ▼0.26 | 686.58 ▲69.40 | 52.57 ▼1.06 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.02 | 100.56 ▼3.24 | 45.10 ▼3.90 |
Floating Social Media Links /wp-admin/options-general.php?page=floating-social-media-links/floating-social-media-links.php | 2,912 | 4.21 | 105.74 | 120.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/floating-social-media-links/floating-social-media-links.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
floating-social-media-links/floating-social-media-links.php Passed 13 tests
The principal PHP file in "Floating Social Media Links" v. 1.5.2 is loaded by WordPress automatically on each request
99 characters long description:
Add a clean and simple floating frame, with social media and/or custom links, to your website/blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,699 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 99 | 113 | 1,258 |
CSS | 2 | 8 | 5 | 294 |
JavaScript | 2 | 26 | 27 | 139 |
SVG | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/admin/theme-bright.png | 11.72KB | 5.34KB | ▼ 54.41% |
img/x-dark.png | 0.35KB | 0.21KB | ▼ 40.33% |
img/youtube.png | 9.48KB | 9.33KB | ▼ 1.64% |
img/x.png | 0.17KB | 0.18KB | 0.00% |
img/pintrest.png | 7.39KB | 7.45KB | 0.00% |