Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼4.28ms] Passed 4 tests
Analyzing server-side resources used by SimpleTwit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.24 | 43.99 ▼2.14 |
Dashboard /wp-admin | 63.64 ▲60.29 | 12,464,226.24 ▲12,464,168.54 |
Posts /wp-admin/edit.php | 3.70 ▲0.30 | 51.96 ▼3.83 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.24 | 96.76 ▼12.09 |
Media Library /wp-admin/upload.php | 3.51 ▲0.24 | 41.44 ▲0.92 |
Twitter Feed /wp-admin/options-general.php?page=stf-twit-feed | 3.47 | 33.75 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
stf_auth_creds |
theysaidso_admin_options |
widget_recent-comments |
stf_last_tweet |
widget_stf_widget |
stf_creds_info |
stf_twit |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SimpleTwit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲16 | 14.23 ▼0.00 | 1.66 ▼0.40 | 39.10 ▼4.24 |
Dashboard /wp-admin | 2,205 ▲28 | 5.57 ▼0.02 | 87.82 ▼4.58 | 45.24 ▼3.34 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.00 ▲0.00 | 37.65 ▲1.43 | 35.11 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.78 ▲0.21 | 664.19 ▼72.51 | 68.40 ▼2.69 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.17 ▼0.08 | 98.56 ▼11.71 | 46.23 ▲0.68 |
Twitter Feed /wp-admin/options-general.php?page=stf-twit-feed | 839 | 2.01 | 26.53 | 30.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 11 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- stf_creds_info
- stf_twit
- widget_stf_widget
- widget_recent-comments
- theysaidso_admin_options
- stf_last_tweet
- ...
Smoke tests 50% 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)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=stf-twit-feed
- > 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=stf-twit-feed
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stf-twit-feed
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stf-twit-feed
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simpletwit/lib/stf-tweet-post-type.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simpletwit/lib/stf-tweet-post-type.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simpletwit/options-page.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simpletwit/widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/simpletwit/views/options-template.php:2
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Donate link: Invalid URI ("")
simpletwit/simple-twit.php 85% from 13 tests
The main PHP file in "SimpleTwit" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simpletwit.php" instead of "simple-twit.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 427 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
No dangerous file extensions were detected1,294 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 216 | 449 | 1,143 |
Markdown | 1 | 37 | 0 | 125 |
JSON | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 9 | 20.00% |
▷ Public methods | 28 | 62.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 37.78% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected