Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼134.73ms] Passed 4 tests
Server-side resources used by Social Media Aggregator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.11 ▲0.39 | 52.99 ▲29.38 |
Dashboard /wp-admin | 3.46 ▲0.41 | 58.47 ▲6.58 |
Posts /wp-admin/edit.php | 3.50 ▲0.39 | 57.38 ▲8.20 |
Add New Post /wp-admin/post-new.php | 5.75 ▲0.32 | 107.89 ▼557.16 |
Media Library /wp-admin/upload.php | 3.34 ▲0.33 | 38.98 ▲3.47 |
Settings /wp-admin/edit.php?post_type=sa-socialfeed&page=sa-settings | 3.31 | 40.67 |
Social Content /wp-admin/edit.php?post_type=sa-socialfeed | 3.41 | 41.18 |
Source Type /wp-admin/edit-tags.php?taxonomy=sa_tax_sources&post_type=sa-socialfeed | 3.35 | 48.57 |
Options /wp-admin/edit.php?post_type=sa-socialfeed&page=sa-options | 3.31 | 39.76 |
Add New /wp-admin/post-new.php?post_type=sa-socialfeed | 3.52 | 54.22 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 76 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Social Media Aggregator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,764 ▲182 | 15.91 ▲0.44 | 11.40 ▲3.45 | 47.97 ▼7.28 |
Dashboard /wp-admin | 3,020 ▲86 | 5.84 ▼0.09 | 147.19 ▲5.37 | 122.16 ▼1.23 |
Posts /wp-admin/edit.php | 2,789 ▲50 | 2.69 ▼0.01 | 70.15 ▲6.12 | 89.99 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,715 ▲32 | 18.66 ▼0.09 | 387.58 ▲8.66 | 112.11 ▼0.87 |
Media Library /wp-admin/upload.php | 1,857 ▲47 | 5.03 ▲0.00 | 148.14 ▼6.16 | 127.34 ▲9.72 |
Settings /wp-admin/edit.php?post_type=sa-socialfeed&page=sa-settings | 1,149 | 2.36 | 60.06 | 100.42 |
Social Content /wp-admin/edit.php?post_type=sa-socialfeed | 1,462 | 2.64 | 71.52 | 76.85 |
Source Type /wp-admin/edit-tags.php?taxonomy=sa_tax_sources&post_type=sa-socialfeed | 2,119 | 2.41 | 68.30 | 88.11 |
Options /wp-admin/edit.php?post_type=sa-socialfeed&page=sa-options | 1,107 | 2.09 | 54.74 | 76.68 |
Add New /wp-admin/post-new.php?post_type=sa-socialfeed | 3,045 | 9.17 | 242.52 | 151.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script 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)
Good news, no errors were detected
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/social-media-aggregator/vendor/facebook/php-sdk/examples/with_js_sdk.php
- > /wp-content/plugins/social-media-aggregator/vendor/dg/rss-php/load-rss.php
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/social-media-aggregator/vendor/php-instagram-api/php-instagram-api/Tests/UserTest.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Instagram\et\\ClientInterface' not found in wp-content/plugins/social-media-aggregator/vendor/php-instagram-api/php-instagram-api/Instagram/Net/CurlClient.php:16
- > PHP Fatal error
Uncaught Error: Class 'Instagram\\User' not found in wp-content/plugins/social-media-aggregator/vendor/php-instagram-api/php-instagram-api/Instagram/CurrentUser.php:24
- > PHP Fatal error
Uncaught Error: Class 'Instagram\\Collection\\MediaCollection' not found in wp-content/plugins/social-media-aggregator/vendor/php-instagram-api/php-instagram-api/Instagram/Collection/LikedMediaCollection.php:16
- > PHP Fatal error
Uncaught Error: Class 'Instagram\\Core\\BaseObjectAbstract' not found in wp-content/plugins/social-media-aggregator/vendor/php-instagram-api/php-instagram-api/Instagram/User.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/social-media-aggregator/vendor/php-instagram-api/php-instagram-api/Tests/TagTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Instagram\\Collection\\CollectionAbstract' not found in wp-content/plugins/social-media-aggregator/vendor/php-instagram-api/php-instagram-api/Instagram/Collection/MediaSearchCollection.php:16
- > PHP Fatal error
Uncaught OAuthException: Error validating application. Application has been deleted. thrown in wp-content/plugins/social-media-aggregator/vendor/facebook/php-sdk/src/base_facebook.php on line 1294
- > PHP Fatal error
Uncaught Error: Class 'Instagram\\Collection\\CollectionAbstract' not found in wp-content/plugins/social-media-aggregator/vendor/php-instagram-api/php-instagram-api/Instagram/Collection/UserCollection.php:16
- > PHP Fatal error
Uncaught Error: Class 'Instagram\\Core\\BaseObjectAbstract' not found in wp-content/plugins/social-media-aggregator/vendor/php-instagram-api/php-instagram-api/Instagram/Location.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== social-media-aggregator ===
)
social-media-aggregator/im-social-aggregator.php 92% from 13 tests
The primary PHP file in "Social Media Aggregator" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("social-media-aggregator.php" instead of "im-social-aggregator.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/social-media-aggregator/vendor/facebook/php-sdk/src/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 1,326 | 3,060 | 5,933 |
Markdown | 4 | 122 | 0 | 279 |
JSON | 5 | 0 | 0 | 269 |
JavaScript | 2 | 2 | 0 | 58 |
CSS | 1 | 1 | 9 | 43 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 3 | 4.92% |
▷ Concrete classes | 58 | 95.08% |
▷ Final classes | 0 | 0.00% |
Methods | 555 | |
▷ Static methods | 24 | 4.32% |
▷ Public methods | 467 | 84.14% |
▷ Protected methods | 78 | 14.05% |
▷ Private methods | 10 | 1.80% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 14 | |
▷ Global constants | 1 | 7.14% |
▷ Class constants | 13 | 92.86% |
▷ Public constants | 13 | 100.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
There are no PNG files in this plugin