Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.25ms] Passed 4 tests
Server-side resources used by Quote Tweet
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.33 ▼0.40 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.58 ▼5.48 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.83 ▲1.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.69 ▼17.01 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.91 ▼2.11 |
Quote Tweet /wp-admin/options-general.php?page=quote-tweet | 3.22 | 33.29 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Quote Tweet
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.73 ▲0.20 | 2.01 ▲0.42 | 45.76 ▲3.34 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▲0.01 | 96.36 ▲5.78 | 38.80 ▼7.91 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.02 | 39.72 ▲3.03 | 34.52 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.04 ▼0.67 | 633.22 ▼7.23 | 50.39 ▼0.63 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.21 ▲0.01 | 100.95 ▼7.10 | 43.76 ▼1.63 |
Quote Tweet /wp-admin/options-general.php?page=quote-tweet | 826 | 2.03 | 26.25 | 29.40 |
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
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/quote-tweet/quote-tweet.php+54
Use of undefined constant delete_option - assumed 'delete_option' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/quote-tweet/admin/admin.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/quote-tweet/admin/admin.php on line 57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quote-tweet/quote-tweet.php:30
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: text selection, social media, tweet, share, twitter
quote-tweet/quote-tweet.php Passed 13 tests
The entry point to "Quote Tweet" version 0.7 is a PHP file that has certain tags in its header comment area
47 characters long description:
A plugin for quickly tweeting a text selection.
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
Good job! No executable or dangerous file extensions detected387 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 30 | 20 | 154 |
CSS | 2 | 10 | 1 | 117 |
JavaScript | 1 | 26 | 1 | 98 |
Markdown | 1 | 10 | 0 | 18 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
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 | 9 | |
▷ Named functions | 9 | 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 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twitter_logo_sm.png | 0.67KB | 0.80KB | 0.00% |
images/twitter_logo_sm_retina.png | 15.15KB | 1.22KB | ▼ 91.92% |