Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/tweettee/src/Includes/Core/Builders/TweetteeBuilderMain.php+24
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.05MB] [CPU: ▼139.99ms] Passed 4 tests
This is a short check of server-side resources used by Tweettee
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 36.90 ▲1.44 |
Dashboard /wp-admin | 3.16 ▲0.11 | 48.98 ▲0.42 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 42.75 ▲0.15 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 90.52 ▼557.49 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 30.51 ▼3.02 |
Tweettee /wp-admin/options-general.php?page=tweettee | 3.13 | 28.10 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 87 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_tweettee_cache |
New WordPress options |
---|
tweettee |
widget_tweettee_plugin |
Browser metrics Passed 4 tests
An overview of browser requirements for Tweettee
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,827 ▲233 | 16.38 ▲0.91 | 15.00 ▲5.88 | 47.40 ▲0.53 |
Dashboard /wp-admin | 2,972 ▲39 | 5.89 ▼0.10 | 138.84 ▼7.84 | 117.00 ▲1.92 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.01 | 70.13 ▲2.65 | 80.44 ▼8.81 |
Add New Post /wp-admin/post-new.php | 1,878 ▲378 | 19.16 ▲0.57 | 346.99 ▼13.57 | 109.48 ▼9.13 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.04 ▲0.02 | 154.91 ▲15.96 | 122.15 ▲14.23 |
Tweettee /wp-admin/options-general.php?page=tweettee | 1,132 | 2.33 | 54.25 | 65.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_tweettee_plugin
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tweettee/src/Includes/Core/Builders/tpl/good_template.php
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/tweettee/vendor/abraham/twitteroauth/src/TwitterOAuth.php:16
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/tweettee/src/Includes/Core/Builders/tpl/good_template.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tweettee/src/Includes/Core/TweetteeWidget.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/tweettee/vendor/abraham/twitteroauth/tests/Util/JsonDecoderTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/tweettee/vendor/abraham/twitteroauth/tests/AbstractSignatureMethodTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Tests\\AbstractSignatureMethodTest' not found in wp-content/plugins/tweettee/vendor/abraham/twitteroauth/tests/HmacSha1Test.php:7
- > PHP Fatal error
Uncaught Error: Class 'Wladweb\\Tweettee\\Includes\\Core\\Builders\\TweetteeBuilder' not found in wp-content/plugins/tweettee/src/Includes/Core/Builders/TweetteeBuilderWidget.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Wladweb\\Tweettee\\Includes\\Core\\I\\SessionInterface' not found in wp-content/plugins/tweettee/src/Includes/TweetteeSession.php:10
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/tweettee/vendor/abraham/twitteroauth/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/tweettee/vendor/abraham/twitteroauth/tests/bootstrap.php on line 3
- > PHP Notice
Undefined variable: data in wp-content/plugins/tweettee/src/Includes/Core/Builders/tpl/good_template.php on line 2
- > 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 83% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Tweettee settings.), #2 (Widget.), #3 (Block in home page.)
- Donate link: Invalid URI ("")
tweettee/tweettee_bootstrap.php 77% from 13 tests
The primary PHP file in "Tweettee" version 1.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 221 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("tweettee.php" instead of "tweettee_bootstrap.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
There were no executable files found in this plugin3,837 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 675 | 1,322 | 3,093 |
CSS | 2 | 68 | 6 | 303 |
JSON | 3 | 0 | 0 | 114 |
JavaScript | 2 | 26 | 3 | 98 |
PO File | 1 | 36 | 51 | 98 |
Markdown | 5 | 36 | 0 | 78 |
XML | 2 | 2 | 1 | 23 |
YAML | 1 | 0 | 0 | 17 |
Bourne Shell | 1 | 4 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 3 | 7.50% |
▷ Concrete classes | 37 | 92.50% |
▷ Final classes | 0 | 0.00% |
Methods | 265 | |
▷ Static methods | 25 | 9.43% |
▷ Public methods | 198 | 74.72% |
▷ Protected methods | 15 | 5.66% |
▷ Private methods | 52 | 19.62% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 17 | |
▷ Global constants | 8 | 47.06% |
▷ Class constants | 9 | 52.94% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/Includes/Core/Builders/tpl/images/language.png | 3.75KB | 2.83KB | ▼ 24.50% |