Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.85ms] Passed 4 tests
A check of server-side resources used by Recent Tweet
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.48 ▼1.87 |
Dashboard /wp-admin | 3.32 ▲0.01 | 42.38 ▼5.98 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 40.71 ▼7.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 78.82 ▼16.05 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.24 ▼1.57 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 141 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_fa_widget_recent_tweet |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Recent Tweet: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.69 ▼0.89 | 1.61 ▲0.03 | 38.28 ▼4.84 |
Dashboard /wp-admin | 2,208 ▲17 | 5.89 ▲1.03 | 103.54 ▼2.89 | 38.87 ▼7.27 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.04 ▲0.03 | 36.72 ▼3.46 | 32.29 ▼6.18 |
Add New Post /wp-admin/post-new.php | 1,530 ▼0 | 23.10 ▲4.79 | 634.26 ▲36.32 | 51.96 ▲1.22 |
Media Library /wp-admin/upload.php | 1,384 ▼7 | 4.25 ▲0.02 | 101.85 ▲3.88 | 42.94 ▲0.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_fa_widget_recent_tweet
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 9× PHP files output text when accessed directly:
- > /wp-content/plugins/recent-tweet/loklak_php_api/Requests/examples/post.php
- > /wp-content/plugins/recent-tweet/recent-tweet.php
- > /wp-content/plugins/recent-tweet/loklak_php_api/Requests/examples/basic-auth.php
- > /wp-content/plugins/recent-tweet/loklak_php_api/Requests/examples/session.php
- > /wp-content/plugins/recent-tweet/loklak_php_api/Requests/examples/cookie_jar.php
- > /wp-content/plugins/recent-tweet/loklak_php_api/Requests/examples/cookie.php
- > /wp-content/plugins/recent-tweet/loklak_php_api/Requests/examples/get.php
- > /wp-content/plugins/recent-tweet/loklak_php_api/Requests/examples/multiple.php
- > /wp-content/plugins/recent-tweet/loklak_php_api/Requests/bin/create_pear_package.php
- 101× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
include(): Failed opening 'loklak.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/recent-tweet/loklak_php_api/Examples/geocode.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/recent-tweet/loklak_php_api/Requests/tests/Response/Headers.php:3
- > PHP Warning
include(): Failed opening 'loklak.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/recent-tweet/loklak_php_api/Examples/search.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/recent-tweet/loklak_php_api/Requests/tests/IDNAEncoder.php:3
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/recent-tweet/loklak_php_api/Requests/library/Requests/Exception/HTTP/400.php:13
- > PHP Fatal error
Uncaught Error: Class 'Loklak' not found in wp-content/plugins/recent-tweet/loklak_php_api/Examples/user.php:6
- > PHP Fatal error
Uncaught Error: Class 'Loklak' not found in wp-content/plugins/recent-tweet/loklak_php_api/Examples/map.php:6
- > PHP Fatal error
Uncaught Error: Class 'Loklak' not found in wp-content/plugins/recent-tweet/loklak_php_api/Examples/hello.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/recent-tweet/loklak_php_api/Requests/tests/Encoding.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/recent-tweet/loklak_php_api/Requests/bin/create_pear_package.php on line 12
- > PHP Warning
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (The widget) image not found
recent-tweet/recent-tweet.php 92% from 13 tests
The principal PHP file in "Recent Tweet" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 357 characters long)
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
There were no executable files found in this plugin7,716 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 103 | 1,485 | 3,840 | 6,800 |
Markdown | 13 | 289 | 0 | 696 |
JSON | 3 | 0 | 0 | 62 |
YAML | 3 | 9 | 5 | 56 |
XML | 1 | 2 | 0 | 37 |
CSS | 2 | 4 | 0 | 29 |
JavaScript | 1 | 2 | 0 | 20 |
Bourne Shell | 2 | 4 | 0 | 12 |
Python | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 85 | |
▷ Abstract classes | 3 | 3.53% |
▷ Concrete classes | 82 | 96.47% |
▷ Final classes | 0 | 0.00% |
Methods | 473 | |
▷ Static methods | 80 | 16.91% |
▷ Public methods | 417 | 88.16% |
▷ Protected methods | 46 | 9.73% |
▷ Private methods | 10 | 2.11% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 3 | 11.11% |
▷ Class constants | 24 | 88.89% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 12.40KB | 8.62KB | ▼ 30.46% |
assets/screenshot-2.png | 91.44KB | 35.65KB | ▼ 61.01% |
assets/screenshot-1.png | 31.77KB | 12.10KB | ▼ 61.91% |
assets/tweet.png | 1.33KB | 0.69KB | ▼ 48.27% |
assets/banner-772x250.png | 63.24KB | 28.90KB | ▼ 54.30% |