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
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/latest-tweets-widget/api/lib/twitter-api-core.php+62
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.73MB] [CPU: ▼198.15ms] Passed 4 tests
Server-side resources used by Latest Tweets Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.07 | 42.07 ▲4.05 |
Dashboard /wp-admin | 1.92 ▼1.13 | 6.68 ▼48.18 |
Posts /wp-admin/edit.php | 1.92 ▼1.19 | 7.37 ▼42.54 |
Add New Post /wp-admin/post-new.php | 1.92 ▼3.51 | 7.88 ▼669.56 |
Media Library /wp-admin/upload.php | 1.92 ▼1.08 | 6.30 ▼32.33 |
Twitter API /wp-admin/options-general.php?page=twitter-api-admin | 1.92 | 6.16 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_latest_tweets_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Latest Tweets Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲136 | 15.85 ▲0.21 | 9.37 ▼3.40 | 50.96 ▲4.05 |
Dashboard /wp-admin | 2,997 ▲63 | 5.94 ▼0.15 | 142.93 ▼16.20 | 113.94 ▼3.91 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 72.73 ▼4.79 | 91.68 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,607 ▼8 | 18.79 ▼2.11 | 394.71 ▲52.59 | 117.54 ▲6.18 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▼0.01 | 167.63 ▼32.79 | 122.93 ▼6.70 |
Twitter API /wp-admin/options-general.php?page=twitter-api-admin | 1,103 | 2.09 | 61.22 | 85.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/latest-tweets-widget/api/lib/twitter-api-core.php+62
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options detected upon uninstall: 1 option
- widget_latest_tweets_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-api-admin
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/latest-tweets-widget/api/lib/twitter-api-core.php+80
Array and string offset access syntax with curly braces is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/latest-tweets-widget/api/test/utils/EmojiTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/latest-tweets-widget/api/test/utils/HtmlTest.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/latest-tweets-widget/api/twitter-api.php:147
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/latest-tweets-widget/api/lang/extra/twitter-errors.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/latest-tweets-widget/api/lib/twitter-api-admin.php:196
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/latest-tweets-widget/api/test/utils/UnicodeTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/latest-tweets-widget/latest-tweets.php:191
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== latest-tweets-widget ===
)
latest-tweets-widget/latest-tweets.php 85% from 13 tests
This is the main PHP file of "Latest Tweets Widget" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("latest-tweets-widget.php" instead of "latest-tweets.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
Good job! No executable or dangerous file extensions detected3,453 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 333 | 475 | 2,108 |
PO File | 10 | 465 | 475 | 1,159 |
Markdown | 2 | 41 | 0 | 97 |
XML | 2 | 2 | 0 | 54 |
Bourne Shell | 2 | 11 | 6 | 35 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 5 | 9.26% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.26% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
PNG images were not found in this plugin