Benchmarks
Plugin footprint 58% 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/social-media-trifecta/admin_menus/classes/class-trifecta-instagram.php+100
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.00MB] [CPU: ▲1.28ms] Passed 4 tests
Analyzing server-side resources used by Social Media Trifecta
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.17 ▲3.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 63.21 ▲9.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.48 ▲6.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.49 ▼2.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.58 ▼2.58 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Social Media Trifecta
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.13 | 1.68 ▲0.02 | 40.13 ▼3.20 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▲0.79 | 96.48 ▼8.51 | 45.14 ▲4.21 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.06 | 41.34 ▲3.50 | 36.72 ▲2.25 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.14 ▲0.01 | 642.43 ▼7.76 | 47.38 ▼10.16 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.02 | 96.27 ▼10.68 | 42.08 ▼6.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 22× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/social-media-trifecta/Facebook/index.php
- > /wp-content/plugins/social-media-trifecta/Twitter/lib/twitter-text-php/lib/Twitter/index.php
- > /wp-content/plugins/social-media-trifecta/Twitter/css/index.php
- > /wp-content/plugins/social-media-trifecta/Templates/index.php
- > /wp-content/plugins/social-media-trifecta/admin_menus/classes/index.php
- > /wp-content/plugins/social-media-trifecta/Facebook/css/index.php
- > /wp-content/plugins/social-media-trifecta/Instagram/js/index.php
- > /wp-content/plugins/social-media-trifecta/admin_menus/index.php
- > /wp-content/plugins/social-media-trifecta/Instagram/index.php
- > /wp-content/plugins/social-media-trifecta/Instagram/css/index.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/social-media-trifecta/Templates/instagram/instagram-default.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-trifecta/Twitter/class-smt-twitter-generator.php:106
- > PHP Notice
Undefined variable: instagram_data in wp-content/plugins/social-media-trifecta/Templates/instagram/instagram-developer.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/social-media-trifecta/Templates/twitter/twitter-default.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-trifecta/admin_menus/classes/class-trifecta-facebook.php:170
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/social-media-trifecta/Templates/facebook/facebook-default.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-trifecta/Instagram/class-smt-instagram-generator.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-trifecta/social-media-trifecta.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-trifecta/Facebook/class-smt-facebook-generator.php:127
- > PHP Notice
Undefined variable: facebook_data in wp-content/plugins/social-media-trifecta/Templates/facebook/facebook-developer.php on line 2
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== social-media-trifecta ===
)
social-media-trifecta/social-media-trifecta.php 92% from 13 tests
"Social Media Trifecta" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,949 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 45 | 13 | 2,268 |
PHP | 21 | 557 | 1,248 | 1,909 |
SVG | 1 | 0 | 0 | 655 |
Markdown | 1 | 23 | 0 | 50 |
JavaScript | 2 | 15 | 0 | 41 |
JSON | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 14 | 8.24% |
▷ Public methods | 138 | 81.18% |
▷ Protected methods | 7 | 4.12% |
▷ Private methods | 25 | 14.71% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 16 | |
▷ Global constants | 1 | 6.25% |
▷ Class constants | 15 | 93.75% |
▷ Public constants | 15 | 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
No PNG files were detected