Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.05ms] Passed 4 tests
Server-side resources used by VIT Social
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.36 ▲1.31 |
Dashboard /wp-admin | 3.33 ▲0.03 | 54.40 ▼6.46 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.13 ▼1.54 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.23 ▼1.52 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.72 ▲1.76 |
VIT Social /wp-admin/options-general.php?page=vit-social | 3.26 | 34.24 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VIT Social
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▲0.09 | 1.68 ▼0.18 | 48.02 ▲2.72 |
Dashboard /wp-admin | 2,193 ▲16 | 5.61 ▼0.02 | 100.61 ▲0.22 | 43.50 ▲0.12 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.03 ▲0.07 | 34.27 ▼2.67 | 35.52 ▲1.80 |
Add New Post /wp-admin/post-new.php | 6,274 ▲4,746 | 21.00 ▼2.23 | 904.41 ▲253.61 | 76.26 ▲10.14 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▼0.00 | 98.46 ▼4.18 | 43.68 ▼0.72 |
VIT Social /wp-admin/options-general.php?page=vit-social | 981 | 1.68 | 25.47 | 30.20 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/vit-social/resources/assets/css/vit-social.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 31 tag instead of maximum 10
vit-social/vit-social.php Passed 13 tests
The main file in "VIT Social" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
124 characters long description:
VIT Social share plugin provides you customization, post wise share buttons with sort order for post or page sharing option.
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
Good job! No executable or dangerous file extensions detected1,485 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 152 | 416 | 761 |
SVG | 1 | 0 | 0 | 640 |
JavaScript | 3 | 15 | 18 | 66 |
CSS | 2 | 1 | 7 | 18 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 86.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 13.21% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/assets/images/whatsapp-icon.png | 11.61KB | 5.71KB | ▼ 50.80% |
resources/assets/images/linkedin-icon.png | 7.95KB | 4.57KB | ▼ 42.49% |
resources/assets/images/twitter-icon.png | 41.24KB | 12.35KB | ▼ 70.06% |
resources/assets/images/google-icon.png | 42.89KB | 7.89KB | ▼ 81.60% |
resources/assets/images/insta-icon.png | 15.85KB | 5.41KB | ▼ 65.84% |