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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.02ms] Passed 4 tests
This is a short check of server-side resources used by TweetEverything
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.71 ▼2.42 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.05 ▼2.26 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 46.94 ▼5.59 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.00 | 77.93 ▼9.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 35.45 ▲2.62 |
Server storage [IO: ▲2.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TweetEverything
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 13.48 ▼0.89 | 10.26 ▲8.59 | 44.16 ▼3.82 |
Dashboard /wp-admin | 2,192 ▲15 | 5.58 ▼0.08 | 88.80 ▼16.49 | 35.41 ▼9.51 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.02 | 39.07 ▲1.07 | 37.25 ▼7.31 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▼0.30 | 670.32 ▲49.46 | 64.07 ▲4.05 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.23 ▲0.03 | 95.82 ▼2.58 | 44.98 ▼2.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× 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/tweeteverything/tweeteverything.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: highlighted text, twitter, share, highlight text, tweet
tweeteverything/tweeteverything.php Passed 13 tests
The main PHP script in "TweetEverything" version 1.0 is automatically included on every request by WordPress
71 characters long description:
TweetEverything lets readers tweet highlighted text from pages & posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected94 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 13 | 6 | 54 |
Markdown | 1 | 13 | 0 | 25 |
PHP | 1 | 5 | 8 | 9 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 2.17MB with 1.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot/1.png | 795.14KB | 253.11KB | ▼ 68.17% |
img/twitter-icon.png | 3.60KB | 2.84KB | ▼ 21.19% |
screenshot/2.png | 781.06KB | 249.27KB | ▼ 68.09% |
screenshot/3.png | 646.46KB | 218.65KB | ▼ 66.18% |