Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/tweets-rotator-2013/twitter_widget.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; Sabby_Twitter has a deprecated constructor
Server metrics [RAM: ▼1.72MB] [CPU: ▼48.86ms] Passed 4 tests
A check of server-side resources used by Tweets Rotator 2013
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 10.18 ▼28.29 |
Dashboard /wp-admin | 2.29 ▼1.05 | 11.38 ▼47.32 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 10.49 ▼36.18 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.73 ▼83.66 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 11.44 ▼22.40 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
widget_sabby_twitter |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Tweets Rotator 2013: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.08 ▼0.58 | 1.74 ▲0.08 | 43.93 ▲2.77 |
Dashboard /wp-admin | 2,192 ▲27 | 5.59 ▼0.02 | 87.39 ▲2.96 | 42.63 ▼2.99 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.03 | 35.44 ▲1.08 | 32.71 ▼5.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.03 ▼0.02 | 658.95 ▼33.86 | 64.42 ▲15.88 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▼0.04 | 100.02 ▼1.61 | 45.38 ▲1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Sabby_Twitter is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_sabby_twitter
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tweets-rotator-2013/twitter_widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (This screen shot description corresponds to screenshot-2.(png|jpg|jpeg|gif).)
tweets-rotator-2013/twitter_widget.php 92% from 13 tests
"Tweets Rotator 2013" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("tweets-rotator-2013.php" instead of "twitter_widget.php")
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
Everything looks great! No dangerous files found in this plugin205 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 157 | 9 | 135 |
CSS | 1 | 18 | 5 | 70 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/twitter-bird-blue-on-white.png | 0.87KB | 0.64KB | ▼ 26.79% |
image/plugin_twitter_bg.png | 4.41KB | 1.91KB | ▼ 56.77% |
screenshot-2.png | 6.46KB | 3.14KB | ▼ 51.44% |
image/twitter_bird.png | 0.60KB | 0.63KB | 0.00% |
image/twitter_bird_01.png | 0.68KB | 0.66KB | ▼ 2.86% |