Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.81ms] Passed 4 tests
This is a short check of server-side resources used by Inline Tweets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 28.13 ▼21.68 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.81 ▼3.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.13 ▼7.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.18 ▼11.16 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.58 ▼0.59 |
Inline Tweets /wp-admin/options-general.php?page=inline-tweets-settings | 3.18 | 31.44 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
inline_tweets_options |
Browser metrics Passed 4 tests
Checking browser requirements for Inline Tweets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲39 | 13.19 ▼1.23 | 2.23 ▲0.09 | 44.20 ▼0.99 |
Dashboard /wp-admin | 2,228 ▲25 | 5.88 ▲0.97 | 101.76 ▼2.51 | 40.17 ▼5.27 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.02 ▲0.05 | 36.82 ▼4.86 | 36.22 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.14 ▲0.04 | 632.32 ▼24.55 | 61.18 ▲3.46 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.24 ▼0.00 | 101.88 ▼5.52 | 44.71 ▼3.02 |
Inline Tweets /wp-admin/options-general.php?page=inline-tweets-settings | 1,021 | 2.02 | 21.88 | 27.83 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- inline_tweets_options
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=inline-tweets-settings
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/inline-tweets/php/settings.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/inline-tweets/php/settings.php on line 91
- > PHP Notice
Undefined variable: inline_tweets_config in wp-content/plugins/inline-tweets/php/settings.php on line 105
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/inline-tweets/php/settings.php on line 105
- > PHP Notice
Trying to get property 'time_formats' of non-object in wp-content/plugins/inline-tweets/php/settings.php on line 91
- > PHP Fatal error
Uncaught Error: Class 'InlineTweets\\Snippet' not found in wp-content/plugins/inline-tweets/core/SingleTweetSnippet.php:32
- > PHP Notice
Undefined variable: inline_tweets_config in wp-content/plugins/inline-tweets/php/settings.php on line 91
- > PHP Notice
Trying to get property 'styles' of non-object in wp-content/plugins/inline-tweets/php/settings.php on line 105
- > PHP Fatal error
Uncaught Error: Class 'InlineTweets\\Snippet' not found in wp-content/plugins/inline-tweets/core/LatestTweetsSnippet.php:32
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: inline, tweets, tweeter, styles, embed
inline-tweets/inline-tweets.php Passed 13 tests
The entry point to "Inline Tweets" version 2.0 is a PHP file that has certain tags in its header comment area
104 characters long description:
Embed latest tweet(s) or a specific tweet in any page, post or text widget and apply your custom styles.
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin1,088 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 329 | 758 | 1,017 |
CSS | 2 | 14 | 42 | 34 |
JavaScript | 2 | 13 | 57 | 33 |
JSON | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 3 | 20.00% |
▷ Concrete classes | 12 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 11 | 11.96% |
▷ Public methods | 67 | 72.83% |
▷ Protected methods | 15 | 16.30% |
▷ Private methods | 10 | 10.87% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 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