Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/display-tweets-php/displaytweets.php+627
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼62.11ms] Passed 4 tests
Server-side resources used by Display Tweets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.07 ▼36.78 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.56 ▼70.45 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.70 ▼45.17 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.06 ▼96.05 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.49 ▼29.52 |
Twitter Feed /wp-admin/options-general.php?page=displaytweets | 2.05 | 6.36 |
Server storage [IO: ▲0.09MB] [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, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
displaytweets_settings |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
displaytweets_version |
widget_displaytweetswidget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Display Tweets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.44 | 1.51 ▼0.14 | 38.25 ▼5.60 |
Dashboard /wp-admin | 2,193 ▲16 | 5.61 ▼0.04 | 89.58 ▼2.12 | 42.65 ▲0.07 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▼0.01 | 38.98 ▼3.59 | 35.69 ▼4.33 |
Add New Post /wp-admin/post-new.php | 1,531 ▲4 | 23.12 ▼0.12 | 624.28 ▼45.48 | 58.91 ▼3.40 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.07 | 104.38 ▼3.10 | 43.49 ▼3.51 |
Twitter Feed /wp-admin/options-general.php?page=displaytweets | 996 | 2.14 | 25.26 | 27.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/display-tweets-php/displaytweets.php+627
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_displaytweetswidget
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=displaytweets
- > Deprecated in wp-content/plugins/display-tweets-php/displaytweets.php+627
Function create_function() is deprecated
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 items
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/display-tweets-php/includes/Twitter/connect.php
- > /wp-content/plugins/display-tweets-php/includes/Twitter/clearsessions.php
- > /wp-content/plugins/display-tweets-php/includes/Twitter/callback.php
- > /wp-content/plugins/display-tweets-php/includes/Twitter/index.php
- > /wp-content/plugins/display-tweets-php/includes/Twitter/redirect.php
- > /wp-content/plugins/display-tweets-php/includes/Twitter/test.php
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/display-tweets-php/includes/Twitter/twitteroauth/twitteroauth.php on line 118
- > PHP Notice
Undefined index: oauth_token_secret in wp-content/plugins/display-tweets-php/includes/Twitter/redirect.php on line 16
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/display-tweets-php/includes/Twitter/redirect.php on line 15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/display-tweets-php/includes/Twitter/test.php on line 20
- > PHP Notice
Undefined index: oauth_token_secret in wp-content/plugins/display-tweets-php/includes/Twitter/twitteroauth/twitteroauth.php on line 82
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/display-tweets-php/includes/Twitter/callback.php on line 20
- > PHP Notice
Trying to get property 'remaining_hits' of non-object in wp-content/plugins/display-tweets-php/includes/Twitter/test.php on line 24
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/display-tweets-php/includes/Twitter/twitteroauth/twitteroauth.php on line 82
- > PHP Notice
Undefined index: oauth_verifier in wp-content/plugins/display-tweets-php/includes/Twitter/callback.php on line 23
- > PHP Notice
Undefined index: oauth_token_secret in wp-content/plugins/display-tweets-php/includes/Twitter/twitteroauth/twitteroauth.php on line 118
- > PHP Notice
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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: feed, display, tweets, favourites, retweets...
display-tweets-php/displaytweets.php 92% from 13 tests
The main file in "Display Tweets" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("display-tweets-php.php" instead of "displaytweets.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,285 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 400 | 697 | 1,285 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 15 | 14.85% |
▷ Public methods | 89 | 88.12% |
▷ Protected methods | 2 | 1.98% |
▷ Private methods | 10 | 9.90% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/Twitter/images/darker.png | 2.31KB | 1.70KB | ▼ 26.41% |
includes/Twitter/images/lighter.png | 2.43KB | 1.77KB | ▼ 27.11% |