Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/mini-twitter-feed/mini-twitter-feed.php+68
Methods with the same name as their class will not be constructors in a future version of PHP; MinitwitterWidget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼49.72ms] Passed 4 tests
Analyzing server-side resources used by Mini twitter feed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 9.85 ▼28.75 |
Dashboard /wp-admin | 2.29 ▼1.01 | 9.90 ▼41.58 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 10.69 ▼41.40 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.25 ▼87.13 |
Media Library /wp-admin/upload.php | 2.29 ▼0.93 | 10.07 ▼24.90 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_minitwitter-widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mini twitter feed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲128 | 13.94 ▲0.60 | 29.94 ▲25.45 | 40.93 ▼5.40 |
Dashboard /wp-admin | 2,203 ▲15 | 5.84 ▲0.03 | 99.70 ▼20.07 | 39.43 ▼6.83 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▼0.01 | 36.29 ▼4.35 | 31.57 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.07 ▲4.73 | 672.74 ▲9.53 | 65.48 ▲6.04 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▲0.05 | 107.52 ▼3.32 | 46.92 ▼2.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in MinitwitterWidget is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_minitwitter-widget
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 add_action() in wp-content/plugins/mini-twitter-feed/mini-twitter-feed.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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:
- Screenshots: Screenshot #1 (The twitter feed on your blog.) image missing
- Requires at least: Version not formatted correctly
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== mini-twitter-feed ===
)
mini-twitter-feed/mini-twitter-feed.php Passed 13 tests
This is the main PHP file of "Mini twitter feed" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
This plugin displays tweets from your feed, from the Twitter Search, from a list or from your favorite users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin145 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 20 | 121 |
CSS | 1 | 2 | 0 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 64.38KB | 20.12KB | ▼ 68.75% |