Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.65MB] [CPU: ▼3.97ms] Passed 4 tests
Analyzing server-side resources used by Flat Twitter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.61 | 26.22 ▼15.56 |
Dashboard /wp-admin | 3.96 ▲0.65 | 53.96 ▲3.54 |
Posts /wp-admin/edit.php | 4.07 ▲0.71 | 52.88 ▲2.39 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 89.18 ▼6.23 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 42.11 ▲7.00 |
Flat Twitter /wp-admin/options-general.php?page=flat-twitter/admin/lmb-flat-twitter-admin.php | 3.83 | 33.85 |
Server storage [IO: ▲3.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,082 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_lmb-flat-twitter-feeds-widget |
widget_lmb-flat-twitter-profile-widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Flat Twitter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲183 | 13.68 ▼0.62 | 7.26 ▲5.43 | 41.06 ▼4.58 |
Dashboard /wp-admin | 2,214 ▲25 | 5.88 ▲0.93 | 104.57 ▼6.32 | 38.61 ▼3.63 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.05 ▲0.02 | 41.10 ▲1.44 | 35.40 ▲3.27 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.19 ▲1.96 | 687.27 ▼9.95 | 52.34 ▼5.62 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.16 ▼0.02 | 106.10 ▲12.10 | 45.69 ▲2.70 |
Flat Twitter /wp-admin/options-general.php?page=flat-twitter/admin/lmb-flat-twitter-admin.php | 854 | 2.16 | 23.88 | 29.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=flat-twitter/admin/lmb-flat-twitter-admin.php
- > Notice in wp-content/plugins/flat-twitter/admin/lmb-flat-twitter-admin.php+39
Trying to access array offset on value of type bool
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
Please take a closer look at the following
- 5× 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/flat-twitter/inc/lmb-flat-twitter-feed-update.php:344
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/flat-twitter/lmb-flat-twitter.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flat-twitter/inc/class-lmb-flat-twitter-profile-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flat-twitter/admin/lmb-flat-twitter-admin.php:149
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flat-twitter/inc/class-lmb-flat-twitter-feeds-widget.php:3
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== flat-twitter ===
)
flat-twitter/lmb-flat-twitter.php 77% from 13 tests
The main PHP script in "Flat Twitter" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 211 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("flat-twitter.php" instead of "lmb-flat-twitter.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
Everything looks great! No dangerous files found in this plugin2,368 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 1,044 | 2,927 | 1,260 |
CSS | 2 | 83 | 5 | 594 |
JavaScript | 4 | 151 | 41 | 226 |
PO File | 1 | 74 | 97 | 180 |
Markdown | 2 | 88 | 0 | 108 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 62.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 8.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 15 | 48.39% |
▷ Public methods | 27 | 87.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.90% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1059 compressed PNG files occupy 2.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/emojione/assets/png/1F3BE.png | 2.22KB | 2.00KB | ▼ 9.88% |
lib/emojione/assets/png/1F1F2-1F1F1.png | 0.35KB | 0.39KB | 0.00% |
lib/emojione/assets/png/1F3A2.png | 2.82KB | 2.04KB | ▼ 27.87% |
lib/emojione/assets/png/26AA.png | 1.23KB | 1.61KB | 0.00% |
lib/emojione/assets/png/1F412.png | 2.36KB | 2.20KB | ▼ 6.58% |