Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.11ms] Passed 4 tests
Analyzing server-side resources used by Another Twitter Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.12 | 45.31 ▼0.46 |
Dashboard /wp-admin | 3.77 ▲0.21 | 53.66 ▲0.97 |
Posts /wp-admin/edit.php | 3.82 ▲0.14 | 49.80 ▼3.28 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.16 | 93.05 ▼17.67 |
Media Library /wp-admin/upload.php | 3.63 ▲0.14 | 41.54 ▲1.33 |
Twitter Settings /wp-admin/admin.php?page=dt_atp_twitter_settings_admin_page | 3.58 | 39.81 |
Display Style /wp-admin/admin.php?page=dt_atp_display_style_admin_page | 3.58 | 37.18 |
Dashboard /wp-admin/admin.php?page=dt_atp_dashboard_admin_page | 3.58 | 32.01 |
Plugin Settings /wp-admin/admin.php?page=dt_atp_plugin_settings_admin_page | 3.58 | 42.24 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 11 new options
New WordPress options |
---|
dt_atp_textarea_style |
widget_recent-comments |
dt_atp_number_of_saved_tweets |
can_compress_scripts |
dt_atp_cron_time |
widget_recent-posts |
dt_atp_number_of_tweets |
theysaidso_admin_options |
dt_atp_textbox |
db_upgraded |
... |
Browser metrics Passed 4 tests
Another Twitter Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲42 | 14.37 ▲0.13 | 1.77 ▼0.12 | 40.95 ▼1.48 |
Dashboard /wp-admin | 2,237 ▲60 | 5.67 ▼0.03 | 89.18 ▼4.08 | 40.82 ▼0.29 |
Posts /wp-admin/edit.php | 2,142 ▲36 | 2.02 ▲0.04 | 35.09 ▼8.33 | 36.25 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.34 ▼0.10 | 646.22 ▼54.28 | 52.36 ▼7.49 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.25 ▲0.06 | 98.65 ▼7.70 | 42.49 ▼5.71 |
Twitter Settings /wp-admin/admin.php?page=dt_atp_twitter_settings_admin_page | 739 | 1.53 | 6.89 | 22.67 |
Display Style /wp-admin/admin.php?page=dt_atp_display_style_admin_page | 745 | 1.53 | 6.98 | 20.39 |
Dashboard /wp-admin/admin.php?page=dt_atp_dashboard_admin_page | 743 | 1.53 | 6.68 | 17.98 |
Plugin Settings /wp-admin/admin.php?page=dt_atp_plugin_settings_admin_page | 734 | 1.53 | 6.69 | 21.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=dt_atp_twitter_settings_admin_page
- > Warning in wp-content/plugins/another-twitter-extension/another-twitter-plugin.php+873
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=dt_atp_twitter_settings_admin_page
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/another-twitter-extension/another-twitter-plugin.php on line 653 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/another-twitter-extension/another-twitter-plugin.php(653): do_settings_fields()
#1 wp-includes/class-wp-hook.php(310): dt_atp_twitter_settings_admin_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=dt_atp_display_style_admin_page
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/another-twitter-extension/another-twitter-plugin.php on line 746 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/another-twitter-extension/another-twitter-plugin.php(746): do_settings_fields()
#1 wp-includes/class-wp-hook.php(310): dt_atp_display_style_admin_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=dt_atp_dashboard_admin_page
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/another-twitter-extension/another-twitter-plugin.php on line 354 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/another-twitter-extension/another-twitter-plugin.php(354): do_settings_fields()
#1 wp-includes/class-wp-hook.php(310): dt_atp_dashboard_admin_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=dt_atp_plugin_settings_admin_page
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/another-twitter-extension/another-twitter-plugin.php on line 488 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/another-twitter-extension/another-twitter-plugin.php(488): do_settings_fields()
#1 wp-includes/class-wp-hook.php(310): dt_atp_plugin_settings_admin_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/another-twitter-extension/another-twitter-plugin.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
- Tags: You are using too many tags: 12 tag instead of maximum 10
another-twitter-extension/another-twitter-plugin.php 77% from 13 tests
"Another Twitter Plugin" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("another-twitter-extension.php" instead of "another-twitter-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,467 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 366 | 395 | 1,368 |
CSS | 1 | 5 | 1 | 46 |
JavaScript | 1 | 1 | 0 | 33 |
Markdown | 1 | 3 | 0 | 19 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 10 | 13.16% |
▷ Public methods | 65 | 85.53% |
▷ Protected methods | 2 | 2.63% |
▷ Private methods | 9 | 11.84% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin