Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/specific-tweets/specifictweets.php+214
Function create_function() is deprecated
Server metrics [RAM: ▼1.90MB] [CPU: ▼55.64ms] Passed 4 tests
This is a short check of server-side resources used by Specific Tweets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.57 ▼38.46 |
Dashboard /wp-admin | 2.11 ▼1.20 | 8.38 ▼43.59 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.23 ▼45.46 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.09 ▼95.04 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.49 ▼32.31 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_specific_tweets |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Specific Tweets: 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,800 ▲29 | 13.55 ▼0.82 | 1.63 ▼0.38 | 43.28 ▲2.37 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.88 | 97.98 ▼3.09 | 41.37 ▼1.50 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.00 | 40.63 ▼0.03 | 34.10 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.63 ▲0.51 | 609.41 ▼56.42 | 71.44 ▲3.62 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▲0.04 | 94.57 ▼10.50 | 39.88 ▼13.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/specific-tweets/specifictweets.php+214
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_specific_tweets
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/specific-tweets/specifictweets.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== specific-tweets ===
) - Screenshots: These screenshots require images: #1 (Widget Options), #2 (Viewing the Widget)
specific-tweets/specifictweets.php 85% from 13 tests
"Specific Tweets" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("specific-tweets.php" instead of "specifictweets.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected142 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 58 | 142 |
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.21 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
4 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
options.png | 25.56KB | 8.75KB | ▼ 65.75% |
widget.png | 29.09KB | 8.50KB | ▼ 70.79% |
screenshot-1.png | 35.18KB | 11.36KB | ▼ 67.70% |
screenshot-2.png | 28.18KB | 8.51KB | ▼ 69.79% |