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
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/pb-tweet/tweetbuddy.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; PBTweetBuddy has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼54.61ms] Passed 4 tests
An overview of server-side resources used by PB-Tweet
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 4.88 ▼33.95 |
Dashboard /wp-admin | 2.18 ▼1.16 | 6.03 ▼53.64 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 6.28 ▼42.95 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 6.84 ▼87.89 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 5.87 ▼28.65 |
pbTweet /wp-admin/options-general.php?page=pb-tweetbuddy-settings | 2.19 | 7.10 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PB-Tweet
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.65 ▼0.93 | 1.79 ▼0.02 | 39.86 ▼4.71 |
Dashboard /wp-admin | 2,213 ▲22 | 4.85 ▼1.00 | 98.30 ▼13.37 | 41.24 ▼2.83 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.04 | 36.91 ▼0.30 | 35.27 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,535 ▼7 | 23.08 ▲4.72 | 680.34 ▲35.61 | 59.64 ▼0.10 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▲0.08 | 96.89 ▼5.56 | 42.72 ▼1.62 |
pbTweet /wp-admin/options-general.php?page=pb-tweetbuddy-settings | 805 | 1.70 | 26.57 | 25.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/pb-tweet/tweetbuddy.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; PBTweetBuddy has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=pb-tweetbuddy-settings
- > Deprecated in wp-content/plugins/pb-tweet/tweetbuddy.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; PBTweetBuddy has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=pb-tweetbuddy-settings
- > Notice in wp-content/plugins/pb-tweet/tweetbuddy.php+56
Only variables should be passed by reference
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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pb-tweet/tweetbuddy.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function auth_redirect() in wp-content/plugins/pb-tweet/lib/updater/get.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pb-tweet/lib/updater/updater.php:237
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pb-tweet/tweetbuddy.php on line 51
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=pb-tweetbuddy-settings
- > Javascript (severe) in unknown
/wp-content/plugins/pb-tweet/js/tooltip.js?ver=6.3.1 13:62 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
- > GET request to /wp-admin/options-general.php?page=pb-tweetbuddy-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).tooltip is not a function" "TypeError: jQuery(...).tooltip is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/pb-tweet/js/admin.js?ver=6.3.1:2:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=pb-tweetbuddy-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).tooltip is not a function
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:
- Plugin Name: You should set the name of your plugin on the first line (
=== pb-tweet ===
)
pb-tweet/tweetbuddy.php 92% from 13 tests
The main file in "PB-Tweet" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pb-tweet.php" instead of "tweetbuddy.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
Good job! No executable or dangerous file extensions detected560 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 120 | 108 | 512 |
CSS | 2 | 0 | 0 | 33 |
JavaScript | 2 | 0 | 13 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.38MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pluginbuddy.png | 3.28KB | 0.71KB | ▼ 78.24% |
screenshot-1.png | 144.42KB | 49.35KB | ▼ 65.83% |
lib/updater/key.png | 0.60KB | 0.59KB | ▼ 1.47% |
screenshot-2.png | 239.41KB | 86.71KB | ▼ 63.78% |