Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▼0.01ms] Passed 4 tests
A check of server-side resources used by Grid Social Boxes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 38.86 ▼3.80 |
Dashboard /wp-admin | 3.89 ▲0.59 | 47.79 ▼3.15 |
Posts /wp-admin/edit.php | 3.94 ▲0.59 | 49.72 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 94.73 ▲12.21 |
Media Library /wp-admin/upload.php | 3.81 ▲0.58 | 37.03 ▲6.59 |
Grid Social Boxes /wp-admin/options-general.php?page=grid_social_boxes_settings | 3.72 | 39.31 |
Server storage [IO: ▲30.16MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Total filesystem usage should be limited to 25MB (currently using 30.16MB)
Filesystem: 12,102 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Grid Social Boxes: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲59 | 13.24 ▼1.06 | 1.61 ▼0.32 | 38.37 ▼9.76 |
Dashboard /wp-admin | 2,225 ▲40 | 5.88 ▲1.00 | 99.92 ▼15.66 | 43.62 ▼1.58 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▲0.03 | 39.89 ▲2.06 | 35.06 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,427 ▼107 | 17.75 ▼5.20 | 601.58 ▼68.56 | 54.03 ▲1.79 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.25 ▲0.07 | 97.71 ▼3.13 | 43.66 ▼0.16 |
Grid Social Boxes /wp-admin/options-general.php?page=grid_social_boxes_settings | 813 | 2.02 | 24.28 | 30.74 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/grid-social-boxes/vendor/cosenary/instagram/example/popular.php
- > /wp-content/plugins/grid-social-boxes/vendor/cosenary/instagram/example/index.php
- > /wp-content/plugins/grid-social-boxes/templates/grid-box-social_timeline.tpl.php
- > /wp-content/plugins/grid-social-boxes/templates/facebook-post.tpl.php
- > /wp-content/plugins/grid-social-boxes/vendor/cosenary/instagram/example/success.php
- > /wp-content/plugins/grid-social-boxes/templates/grid-box-youtube_feed.tpl.php
- 4095× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/grid-social-boxes/templates/grid-box-youtube_feed.tpl.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/grid-social-boxes/vendor/google/apiclient-services/src/Google/Service/AndroidManagement/SetupAction.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/grid-social-boxes/vendor/google/apiclient-services/src/Google/Service/Analytics/Profile.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/grid-social-boxes/vendor/google/apiclient-services/src/Google/Service/CloudAsset/SearchAllIamPoliciesResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/grid-social-boxes/vendor/google/apiclient-services/src/Google/Service/AndroidProvisioningPartner/UpdateDeviceMetadataInBatchRequest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/grid-social-boxes/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SitesListResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/grid-social-boxes/vendor/google/apiclient-services/src/Google/Service/Dataflow/WorkerSettings.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/grid-social-boxes/vendor/google/apiclient-services/src/Google/Service/CloudRun/TestIamPermissionsResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/grid-social-boxes/vendor/google/apiclient-services/src/Google/Service/CloudUserAccounts/Rule.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/grid-social-boxes/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/TimeOfDay.php:18
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: landingpage, admin, editor, containerist, page...
grid-social-boxes/grid-social-boxes.php 92% from 13 tests
This is the main PHP file of "Grid Social Boxes" version 1.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected591,780 lines of code in 12,064 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11,984 | 31,863 | 363,884 | 583,776 |
Markdown | 46 | 2,019 | 0 | 5,633 |
JSON | 21 | 0 | 0 | 1,884 |
CSS | 1 | 23 | 9 | 154 |
PO File | 1 | 35 | 35 | 107 |
JavaScript | 2 | 16 | 15 | 106 |
YAML | 2 | 2 | 0 | 47 |
XML | 4 | 2 | 1 | 41 |
Bourne Shell | 1 | 4 | 0 | 13 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 632.00 |
Average method complexity | 1.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 57 | |
Interfaces | 38 | |
Traits | 10 | |
Classes | 11,891 | |
▷ Abstract classes | 14 | 0.12% |
▷ Concrete classes | 11,877 | 99.88% |
▷ Final classes | 17 | 0.14% |
Methods | 83,352 | |
▷ Static methods | 239 | 0.29% |
▷ Public methods | 82,834 | 99.38% |
▷ Protected methods | 207 | 0.25% |
▷ Private methods | 311 | 0.37% |
Functions | 234 | |
▷ Named functions | 111 | 47.44% |
▷ Anonymous functions | 123 | 52.56% |
Constants | 1,004 | |
▷ Global constants | 77 | 7.67% |
▷ Class constants | 927 | 92.33% |
▷ Public constants | 907 | 97.84% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cosenary/instagram/example/assets/instagram.png | 9.25KB | 2.30KB | ▼ 75.16% |
vendor/cosenary/instagram/example/assets/instagram-big.png | 21.27KB | 6.17KB | ▼ 70.98% |