Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/tweets-widget/api/wp-twitter-api/lib/twitter-api-core.php+80
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.72MB] [CPU: ▼54.60ms] Passed 4 tests
Server-side resources used by Tweets Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 10.00 ▼35.71 |
Dashboard /wp-admin | 2.30 ▼1.05 | 10.20 ▼54.67 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 11.00 ▼41.41 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 9.72 ▼86.60 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 9.18 ▼26.93 |
Tweets Widget /wp-admin/options-general.php?page=tweets-widget-settings | 2.30 | 10.76 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 169 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
loklak_init |
loklak-settings[loklak_api] |
widget_recent-comments |
widget_tweets_widget |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Tweets Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.23 ▼0.12 | 2.38 ▲0.13 | 43.58 ▲5.66 |
Dashboard /wp-admin | 2,201 ▲34 | 5.61 ▼0.10 | 89.73 ▼20.27 | 41.89 ▲1.12 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▲0.07 | 39.02 ▼1.53 | 37.68 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.06 ▼0.02 | 660.16 ▼27.20 | 54.84 ▼5.14 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.23 ▼0.01 | 99.27 ▼4.35 | 46.52 ▼0.50 |
Tweets Widget /wp-admin/options-general.php?page=tweets-widget-settings | 897 | 2.13 | 22.95 | 31.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/class-requests.php+24
The PSR-0 `Requests_...` class names in the Requests library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience.
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- db_upgraded
- loklak_init
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_tweets_widget
- loklak-settings[loklak_api]
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=tweets-widget-settings
- > User deprecated in wp-includes/class-requests.php+24
The PSR-0 `Requests_...` class names in the Requests library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience.
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
Please take a closer look at the following
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tweets-widget/loklak_php_api/Requests/examples/session.php
- > /wp-content/plugins/tweets-widget/loklak_php_api/Requests/examples/cookie_jar.php
- > /wp-content/plugins/tweets-widget/loklak_php_api/Requests/examples/get.php
- > /wp-content/plugins/tweets-widget/loklak_php_api/Requests/examples/basic-auth.php
- > /wp-content/plugins/tweets-widget/loklak_php_api/Requests/examples/multiple.php
- > /wp-content/plugins/tweets-widget/loklak_php_api/Requests/bin/create_pear_package.php
- > /wp-content/plugins/tweets-widget/loklak_php_api/Requests/examples/cookie.php
- > /wp-content/plugins/tweets-widget/loklak_php_api/Requests/examples/post.php
- 107× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include(): Failed opening 'loklak.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/tweets-widget/loklak_php_api/Examples/map.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/tweets-widget/loklak_php_api/Requests/library/Requests/Exception/HTTP/414.php:13
- > PHP Fatal error
Uncaught Error: Class 'Loklak' not found in wp-content/plugins/tweets-widget/loklak_php_api/Examples/status.php:6
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/tweets-widget/loklak_php_api/Requests/library/Requests/Exception/HTTP/306.php:13
- > PHP Fatal error
Uncaught Error: Class 'Loklak' not found in wp-content/plugins/tweets-widget/loklak_php_api/Examples/search.php:6
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/tweets-widget/loklak_php_api/Requests/library/Requests/Exception/HTTP/305.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/tweets-widget/loklak_php_api/Requests/tests/Transport/Base.php:3
- > PHP Warning
include(loklak.php): failed to open stream: No such file or directory in wp-content/plugins/tweets-widget/loklak_php_api/Examples/aggregations.php on line 2
- > PHP Warning
include(): Failed opening 'loklak.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/tweets-widget/loklak_php_api/Examples/search.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/tweets-widget/loklak_php_api/Requests/library/Requests/Exception/HTTP/500.php:13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== tweets-widget ===
)
tweets-widget/tweets.php 85% from 13 tests
The principal PHP file in "Tweets Widget" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/api/lang/" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tweets-widget.php" instead of "tweets.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin10,179 lines of code in 150 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 1,583 | 3,968 | 8,058 |
PO File | 10 | 465 | 475 | 1,159 |
Markdown | 15 | 302 | 0 | 734 |
JSON | 3 | 0 | 0 | 62 |
YAML | 3 | 9 | 5 | 56 |
XML | 2 | 4 | 0 | 53 |
Bourne Shell | 4 | 15 | 6 | 47 |
CSS | 1 | 0 | 0 | 6 |
Python | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 82 | |
▷ Abstract classes | 1 | 1.22% |
▷ Concrete classes | 81 | 98.78% |
▷ Final classes | 0 | 0.00% |
Methods | 447 | |
▷ Static methods | 76 | 17.00% |
▷ Public methods | 397 | 88.81% |
▷ Protected methods | 44 | 9.84% |
▷ Private methods | 6 | 1.34% |
Functions | 58 | |
▷ Named functions | 58 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 8 | 25.00% |
▷ Class constants | 24 | 75.00% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin