Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/class/class-wp-my-sogrid-backend-class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; Class_Wp_My_SoGrid_Backend_Class has a deprecated constructor
Server metrics [RAM: ▼1.19MB] [CPU: ▼42.69ms] Passed 4 tests
An overview of server-side resources used by SoGrid Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 12.98 ▼31.51 |
Dashboard /wp-admin | 2.83 ▼0.48 | 15.25 ▼34.29 |
Posts /wp-admin/edit.php | 2.83 ▼0.53 | 15.94 ▼29.47 |
Add New Post /wp-admin/post-new.php | 2.83 ▼3.06 | 15.93 ▼75.49 |
Media Library /wp-admin/upload.php | 2.83 ▼0.40 | 14.73 ▼18.98 |
Add New/Edit /wp-admin/admin.php?page=my-sogrid-edit | 2.83 | 16.08 |
SoGrid /wp-admin/admin.php?page=my-sogrid-index | 2.83 | 16.16 |
Get Social Ids /wp-admin/admin.php?page=my-sogrid-search-ids | 2.83 | 15.14 |
Options /wp-admin/admin.php?page=my-sogrid-general-options | 2.83 | 16.17 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 222 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_sogrid_object_meta |
wp_sogrid_objects |
New WordPress options |
---|
br0_sogrid_my_admin_web_fonts |
br0_sogrid_my_admin_webfonts_date |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
br0_sogrid_my_admin_webfonts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SoGrid Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲113 | 13.62 ▼0.83 | 1.63 ▼0.00 | 29.66 ▼22.17 |
Dashboard /wp-admin | 2,235 ▲44 | 5.83 ▲0.92 | 101.34 ▼14.65 | 37.92 ▼4.17 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▲0.02 | 39.37 ▲2.76 | 34.38 ▲2.64 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 23.24 ▲0.04 | 653.00 ▲5.00 | 55.76 ▼6.76 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.25 ▲0.03 | 94.93 ▼8.18 | 41.55 ▼4.09 |
Add New/Edit /wp-admin/admin.php?page=my-sogrid-edit | 3,877 | 4.25 | 127.25 | 37.40 |
SoGrid /wp-admin/admin.php?page=my-sogrid-index | 855 | 2.18 | 24.17 | 38.69 |
Get Social Ids /wp-admin/admin.php?page=my-sogrid-search-ids | 963 | 2.20 | 29.17 | 26.07 |
Options /wp-admin/admin.php?page=my-sogrid-general-options | 1,043 | 2.30 | 32.61 | 26.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/so-grid-main-class.php+158
Undefined index: my_vkontakte_12_12_get_code
- The uninstall procedure failed, leaving 2 tables in the database
- wp_sogrid_object_meta
- wp_sogrid_objects
- This plugin does not fully uninstall, leaving 9 options in the database
- br0_sogrid_my_admin_webfonts_date
- widget_theysaidso_widget
- br0_sogrid_my_admin_webfonts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- br0_sogrid_my_admin_web_fonts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-sogrid-general-options
- > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/so-grid-main-class.php+158
Undefined index: my_vkontakte_12_12_get_code
- > GET request to /wp-admin/admin.php?page=my-sogrid-edit
- > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/views/admin/pages/edit.php+4
Undefined index: id
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-sogrid-edit
- > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/form/views/select.php+5
Undefined index: Open+Sans
- > GET request to /wp-admin/admin.php?page=my-sogrid-edit
- > Deprecated in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/controllers/class-wp-my-sogrid-backend-controller.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; Class_Wp_My_SoGrid_Backend_Controller has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-sogrid-search-ids
- > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/views/admin/pages/search_ids.php+4
Undefined index: my_action
- > GET request to /wp-admin/admin.php?page=my-sogrid-index
- > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/functions/functions.php+2855
Undefined index: my_page
- > GET request to /wp-admin/admin.php?page=my-sogrid-index
- > Deprecated in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/class/class-wp-my-sogrid-table-view.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; Class_Wp_My_SoGrid_Table_View has a deprecated constructor
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/views/front/my-facebook-comments.php
- 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/tests/GraphAlbumTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FacebookCanvasLoginHelper' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/FacebookPageTabHelper.php:31
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/tests/HttpClients/AbstractTestHttpClient.php:3
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FacebookRequestException' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/FacebookPermissionException.php:30
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphObject' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/GraphPage.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/FacebookJavaScriptLoginHelper.php:32
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/tests/Entities/SignedRequestTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sogrid-lite-social-networks-posts-grid/so-grid-main-class.php:22
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FacebookRequestException' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/FacebookClientException.php:30
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphObject' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/GraphUser.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
sogrid-lite-social-networks-posts-grid/so-grid-main-class.php 92% from 13 tests
"SoGrid Lite" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sogrid-lite-social-networks-posts-grid.php" instead of "so-grid-main-class.php")
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 detected27,841 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 89 | 1,437 | 4,526 | 10,844 |
JavaScript | 14 | 1,494 | 2,608 | 7,270 |
CSS | 9 | 632 | 569 | 6,012 |
Sass | 13 | 23 | 24 | 1,256 |
LESS | 13 | 23 | 33 | 1,247 |
PO File | 1 | 270 | 415 | 575 |
SVG | 1 | 0 | 0 | 520 |
Markdown | 2 | 33 | 0 | 68 |
JSON | 1 | 0 | 0 | 30 |
XML | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 2 | 3.12% |
▷ Concrete classes | 62 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 441 | |
▷ Static methods | 54 | 12.24% |
▷ Public methods | 397 | 90.02% |
▷ Protected methods | 8 | 1.81% |
▷ Private methods | 36 | 8.16% |
Functions | 79 | |
▷ Named functions | 69 | 87.34% |
▷ Anonymous functions | 10 | 12.66% |
Constants | 24 | |
▷ Global constants | 14 | 58.33% |
▷ Class constants | 10 | 41.67% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
35 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/prettyPhoto/light_rounded/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
assets/css/smoothness/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
assets/css/images/prettyPhoto/default/sprite_next.png | 1.33KB | 0.39KB | ▼ 70.69% |
assets/css/colorbox/images/overlay.png | 0.11KB | 0.15KB | 0.00% |
includes/modules/front/assets/images/google-plus.png | 3.80KB | 1.17KB | ▼ 69.24% |