Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼4.43ms] Passed 4 tests
An overview of server-side resources used by Search Tweets Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 40.28 ▲2.21 |
Dashboard /wp-admin | 3.61 ▲0.30 | 44.30 ▼3.14 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 49.31 ▲4.90 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 78.45 ▼13.89 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 33.94 ▼2.91 |
Search Tweets Widget /wp-admin/options-general.php?page=search_tweets_widget | 3.45 | 333.79 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 14 new options
New WordPress options |
---|
search_tweets_widget_consumer_secret |
search_tweets_widget_remaining |
widget_theysaidso_widget |
db_upgraded |
search_tweets_widget_authorize_link |
widget_recent-posts |
can_compress_scripts |
search_tweets_widget_reset |
widget_search_tweets_widget |
search_tweets_widget_consumer_key |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Search Tweets Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.27 ▼0.33 | 1.66 ▼0.02 | 48.23 ▲8.80 |
Dashboard /wp-admin | 2,209 ▲35 | 5.63 ▼0.04 | 92.20 ▲5.69 | 37.64 ▼6.28 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.01 ▲0.01 | 38.76 ▲4.11 | 38.51 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.09 ▼0.42 | 676.88 ▲1.22 | 52.73 ▼5.42 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.22 ▼0.08 | 94.40 ▼13.72 | 39.56 ▼4.51 |
Search Tweets Widget /wp-admin/options-general.php?page=search_tweets_widget | 942 | 2.16 | 23.21 | 34.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 14 options in the database
- can_compress_scripts
- search_tweets_widget_authorize_link
- search_tweets_widget_reset
- search_tweets_widget_consumer_key
- search_tweets_widget_schedule
- search_tweets_widget_consumer_secret
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=search_tweets_widget
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=search_tweets_widget
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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 fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: tweets in wp-content/plugins/search-tweets-widget/views/widget.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/search-tweets-widget/includes/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/search-tweets-widget/search-tweets-widget.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/search-tweets-widget/views/widget.php:27
- > PHP Notice
Undefined variable: error in wp-content/plugins/search-tweets-widget/views/widget.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/search-tweets-widget/views/setting.php:2
- > PHP Notice
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: widget, twitter, search
search-tweets-widget/search-tweets-widget.php 92% from 13 tests
The main file in "Search Tweets Widget" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,497 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 267 | 572 | 1,149 |
Bourne Again Shell | 2 | 41 | 38 | 152 |
Markdown | 3 | 37 | 0 | 73 |
Bourne Shell | 1 | 12 | 6 | 47 |
YAML | 1 | 5 | 0 | 28 |
CSS | 1 | 4 | 0 | 24 |
XML | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.64 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 3 | 4.92% |
▷ Public methods | 49 | 80.33% |
▷ Protected methods | 6 | 9.84% |
▷ Private methods | 6 | 9.84% |
Functions | 10 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 10 | 100.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin