Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/widget-embed-lastest-tweets/widget-embed-latest-tweets.php+246
Function create_function() is deprecated
Server metrics [RAM: ▼2.53MB] [CPU: ▼349.68ms] Passed 4 tests
Server-side resources used by Widget embed latest Tweets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.67 | 4.17 ▼51.39 |
Dashboard /wp-admin | 1.86 ▼1.55 | 4.47 ▼28.33 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 4.33 ▼34.19 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 4.53 ▼1,284.82 |
Media Library /wp-admin/upload.php | 1.86 ▼1.44 | 4.26 ▼18.39 |
Widget Embed Latest Tweet /wp-admin/options-general.php?page=welt_options_page | 1.86 | 3.92 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_welt_last_tweets |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Widget embed latest Tweets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 15.77 ▲0.06 | 5.80 ▼0.11 | 2.19 ▼0.53 |
Dashboard /wp-admin | 2,897 ▲36 | 6.17 ▼0.04 | 117.50 ▼20.66 | 153.88 ▼5.18 |
Posts /wp-admin/edit.php | 2,696 ▲5 | 3.23 ▲0.00 | 66.82 ▲3.92 | 139.59 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,714 ▲53 | 21.45 ▲5.60 | 438.95 ▲8.16 | 159.17 ▲3.43 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.52 ▲0.03 | 141.90 ▼1.48 | 177.33 ▼11.93 |
Widget Embed Latest Tweet /wp-admin/options-general.php?page=welt_options_page | 1,072 | 2.39 | 53.30 | 122.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/widget-embed-lastest-tweets/widget-embed-latest-tweets.php+246
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 1 option
- widget_welt_last_tweets
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=welt_options_page
- > Deprecated in wp-content/plugins/widget-embed-lastest-tweets/widget-embed-latest-tweets.php+246
Function create_function() is deprecated
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
- 2× 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/widget-embed-lastest-tweets/welt-option.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-embed-lastest-tweets/widget-embed-latest-tweets.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== widget-embed-lastest-tweets ===
)
widget-embed-lastest-tweets/widget-embed-latest-tweets.php 85% from 13 tests
The main PHP file in "Widget embed latest Tweets" ver. 0.6.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("widget-embed-lastest-tweets.php" instead of "widget-embed-latest-tweets.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,137 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 342 | 426 | 1,015 |
PO File | 1 | 30 | 35 | 94 |
JavaScript | 1 | 15 | 4 | 28 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 10 | 12.50% |
▷ Public methods | 69 | 86.25% |
▷ Protected methods | 2 | 2.50% |
▷ Private methods | 9 | 11.25% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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