Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼215.84ms] Passed 4 tests
An overview of server-side resources used by Social Gallery Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 63.24 ▲1.04 |
Dashboard /wp-admin | 3.43 ▲0.02 | 150.59 ▲116.25 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 147.84 ▲110.45 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 212.18 ▼1,091.09 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 163.52 ▲138.58 |
Social Gallery /wp-admin/admin.php?page=sgp-plugin-config | 3.28 | 135.77 |
Settings /wp-admin/admin.php?page=sgp-plugin-settings | 3.28 | 134.49 |
Server storage [IO: ▲1.95MB] [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: 194 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Social Gallery Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,026 ▲282 | 19.45 ▲3.63 | 13.85 ▲6.87 | 2.46 ▼0.03 |
Dashboard /wp-admin | 3,001 ▲147 | 8.42 ▲2.20 | 200.31 ▲41.08 | 247.32 ▲76.87 |
Posts /wp-admin/edit.php | 2,800 ▲106 | 5.76 ▲2.52 | 113.98 ▲51.09 | 212.27 ▲61.61 |
Add New Post /wp-admin/post-new.php | 2,061 ▲363 | 24.08 ▲6.87 | 539.18 ▲131.18 | 299.53 ▲135.86 |
Media Library /wp-admin/upload.php | 1,806 ▲111 | 7.20 ▲1.70 | 174.67 ▲11.99 | 214.07 ▲13.88 |
Social Gallery /wp-admin/admin.php?page=sgp-plugin-config | 1,227 | 6.16 | 128.33 | 163.66 |
Settings /wp-admin/admin.php?page=sgp-plugin-settings | 1,258 | 6.24 | 125.44 | 157.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% 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 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/social-gallery-lite/freemius/templates/ajax-loader.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/social-gallery-lite/lite/loader.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/social-gallery-lite/lite/loader.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Tags: Too many tags (62 tag instead of maximum 10); only the first 5 tags are used in your directory listing
social-gallery-lite/SocialGalleryLite.php 92% from 13 tests
The entry point to "Social Gallery Lite" version 3.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-gallery-lite.php" instead of "SocialGalleryLite.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected24,931 lines of code in 123 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 81 | 4,047 | 9,224 | 17,218 |
PO File | 5 | 2,095 | 2,118 | 4,740 |
Sass | 18 | 299 | 76 | 1,875 |
JavaScript | 5 | 54 | 75 | 839 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 40 |
CSS | 12 | 2 | 14 | 27 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 48.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,111.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 2 | 5.56% |
▷ Concrete classes | 34 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 704 | |
▷ Static methods | 114 | 16.19% |
▷ Public methods | 527 | 74.86% |
▷ Protected methods | 13 | 1.85% |
▷ Private methods | 164 | 23.30% |
Functions | 114 | |
▷ Named functions | 114 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 102 | |
▷ Global constants | 85 | 83.33% |
▷ Class constants | 17 | 16.67% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
32 PNG files occupy 0.23MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/social-gallery.png | 6.90KB | 3.20KB | ▼ 53.59% |
lite/i/icon-32.png | 2.04KB | 1.68KB | ▼ 17.52% |
lite/i/l.png | 0.22KB | 0.16KB | ▼ 27.31% |
lite/i/social-gallery.png | 9.36KB | 5.05KB | ▼ 46.06% |
themes/classic/r.png | 0.24KB | 0.16KB | ▼ 34.68% |