Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.92ms] Passed 4 tests
An overview of server-side resources used by Social Link Groups
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.64 ▼7.06 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.97 ▼10.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.05 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.50 ▼10.19 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.57 ▼0.35 |
Add New /wp-admin/admin.php?page=aspl_asl_add_new_group_list | 3.31 | 31.15 |
Social Links /wp-admin/admin.php?page=aspl_asl_group_list | 3.25 | 33.58 |
Server storage [IO: ▲6.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 48 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_aspl_asl_group_data |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Social Link Groups
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲206 | 15.79 ▲1.11 | 13.74 ▲11.93 | 41.96 ▼2.22 |
Dashboard /wp-admin | 2,233 ▲81 | 5.80 ▲0.23 | 96.84 ▼14.12 | 37.62 ▼8.61 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.02 ▼0.02 | 38.91 ▲3.75 | 36.83 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 17.72 ▼5.38 | 639.89 ▲1.60 | 49.30 ▼4.65 |
Media Library /wp-admin/upload.php | 1,418 ▲39 | 4.21 ▲0.03 | 95.43 ▼1.45 | 42.92 ▼0.37 |
Add New /wp-admin/admin.php?page=aspl_asl_add_new_group_list | 1,202 | 1.72 | 29.82 | 32.73 |
Social Links /wp-admin/admin.php?page=aspl_asl_group_list | 892 | 1.70 | 23.42 | 27.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_aspl_asl_group_data
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-link-groups/index.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/social-link-groups/templates/add_new_group.php:179
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: social buttons, aspl, links, social, wordpress
social-link-groups/index.php 85% from 13 tests
"Social Link Groups" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-link-groups.php" instead of "index.php")
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected16,849 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,026 |
JavaScript | 2 | 388 | 61 | 4,080 |
CSS | 3 | 1,445 | 6 | 3,100 |
PHP | 4 | 84 | 22 | 643 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assest/images/link.png | 3.02KB | 2.17KB | ▼ 28.16% |
assest/images/line.png | 4.08KB | 2.42KB | ▼ 40.70% |
assest/images/you_tube.png | 4.31KB | 2.47KB | ▼ 42.68% |
assest/images/Twiter.png | 3.75KB | 2.40KB | ▼ 36.00% |
assest/images/Tumblr.png | 1.71KB | 1.26KB | ▼ 25.95% |