Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.20MB] [CPU: ▼16.52ms] Passed 4 tests
Server-side resources used by Twitter Only For You
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.66 | 18.18 ▼21.02 |
Dashboard /wp-admin | 3.34 ▼0.00 | 41.64 ▼15.06 |
Posts /wp-admin/edit.php | 3.17 ▼0.19 | 24.13 ▼26.17 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.52 ▼3.84 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.45 ▲1.13 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Twitter Only For You
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,450 ▼336 | 14.30 ▼0.26 | 0.59 ▼1.33 | 0.09 ▼40.42 |
Dashboard /wp-admin | 2,214 ▲37 | 5.82 ▲0.24 | 83.06 ▼5.44 | 79.69 ▲35.06 |
Posts /wp-admin/edit.php | 27 ▼2,073 | 0.42 ▼1.54 | 0.06 ▼38.25 | 0.11 ▼36.36 |
Add New Post /wp-admin/post-new.php | 1,696 ▲168 | 22.19 ▼0.69 | 720.61 ▲34.85 | 70.21 ▲5.37 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.09 ▼0.06 | 99.91 ▲3.93 | 70.61 ▲27.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/twitteronlyforyou/twitter/callback.php
- > /wp-content/plugins/twitteronlyforyou/twitter/connect.php
- 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant OAUTH_CALLBACK - assumed 'OAUTH_CALLBACK' (this will throw an Error in a future version of PHP) in wp-content/plugins/twitteronlyforyou/twitter/connect.php on line 9
- > PHP Warning
Use of undefined constant CONSUMER_KEY - assumed 'CONSUMER_KEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/twitteronlyforyou/twitter/connect.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/twitteronlyforyou/main.php:15
- > PHP Notice
Undefined index: oauth_token_secret in wp-content/plugins/twitteronlyforyou/twitter/twitteroauth/twitteroauth.php on line 77
- > PHP Notice
Undefined variable: _SESSION in wp-content/plugins/twitteronlyforyou/twitter/callback.php on line 7
- > PHP Notice
Undefined index: oauth_verifier in wp-content/plugins/twitteronlyforyou/twitter/callback.php on line 9
- > PHP Warning
Use of undefined constant CONSUMER_SECRET - assumed 'CONSUMER_SECRET' (this will throw an Error in a future version of PHP) in wp-content/plugins/twitteronlyforyou/twitter/connect.php on line 7
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/twitteronlyforyou/twitter/connect.php on line 10
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/twitteronlyforyou/twitter/twitteroauth/twitteroauth.php on line 111
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/twitteronlyforyou/twitter/callback.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin: Configuration twitter.), #2 (Front: Login button on Login Form)
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
twitteronlyforyou/main.php 85% from 13 tests
The main PHP file in "Twitter Only For You" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
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 ("twitteronlyforyou.php" instead of "main.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected965 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 190 | 348 | 878 |
JavaScript | 2 | 2 | 60 | 49 |
CSS | 2 | 0 | 6 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 10 | 12.82% |
▷ Public methods | 67 | 85.90% |
▷ Protected methods | 2 | 2.56% |
▷ Private methods | 9 | 11.54% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/lighter.png | 4.29KB | 2.16KB | ▼ 49.73% |