Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.04ms] Passed 4 tests
A check of server-side resources used by TweetThis Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.90 ▼3.25 |
Dashboard /wp-admin | 3.34 ▼0.00 | 63.19 ▲1.94 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.28 ▲5.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.09 ▼3.28 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.59 ▲0.44 |
TweetThis Shortcode /wp-admin/options-general.php?page=tweetthis_shortcode | 3.21 | 33.21 |
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: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TweetThis Shortcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 13.37 ▼0.97 | 1.54 ▼0.29 | 38.14 ▼7.32 |
Dashboard /wp-admin | 2,214 ▲26 | 4.87 ▼0.00 | 100.02 ▼15.82 | 39.12 ▼9.01 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.98 ▼0.05 | 40.53 ▲4.52 | 34.96 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 17.66 ▼5.44 | 703.24 ▲28.31 | 61.94 ▲10.64 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.20 ▲0.01 | 98.36 ▼1.60 | 42.98 ▼0.53 |
TweetThis Shortcode /wp-admin/options-general.php?page=tweetthis_shortcode | 878 | 2.15 | 24.56 | 30.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tweetthis_shortcode
- > Notice in wp-content/plugins/tweetthis-shortcode/dkts.php+193
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tweetthis_shortcode
- > Notice in wp-content/plugins/tweetthis-shortcode/dkts.php+182
Trying to get property 'ID' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tweetthis_shortcode
- > Notice in wp-content/plugins/tweetthis-shortcode/dkts.php+239
Undefined variable: dkts_twitter
- > GET request to /wp-admin/options-general.php?page=tweetthis_shortcode
- > Notice in wp-content/plugins/tweetthis-shortcode/dkts.php+221
Undefined variable: hashtag
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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tweetthis-shortcode/dkts.php:29
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (View of the shortcode and output link created.), #2 (View of a report section with the posts and Bit.ly reporting links.)
tweetthis-shortcode/dkts.php 92% from 13 tests
The main PHP file in "TweetThis Shortcode" ver. 1.8.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tweetthis-shortcode.php" instead of "dkts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin198 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 33 | 198 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 9.21KB | 9.66KB | 0.00% |
screenshot-2.png | 21.49KB | 23.14KB | 0.00% |