Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼147.09ms] Passed 4 tests
An overview of server-side resources used by Flying Twitter Birds
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 36.03 ▲3.75 |
Dashboard /wp-admin | 3.09 ▲0.04 | 45.46 ▼2.71 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 49.72 ▲0.55 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 94.13 ▼589.96 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 38.09 ▲6.75 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 5 new options
New WordPress options |
---|
twt_user |
ftwitter_db_version |
twt_js |
twt_text |
ftwitter_status |
Browser metrics Passed 4 tests
Flying Twitter Birds: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,718 ▲122 | 15.82 ▲0.26 | 11.96 ▲3.80 | 50.14 ▲2.64 |
Dashboard /wp-admin | 2,982 ▲45 | 5.92 ▼0.01 | 137.42 ▼17.38 | 140.97 ▲21.67 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.58 ▼0.11 | 66.62 ▼8.74 | 92.36 ▼14.35 |
Add New Post /wp-admin/post-new.php | 1,696 ▲13 | 18.37 ▼0.38 | 396.38 ▲3.14 | 112.08 ▼0.73 |
Media Library /wp-admin/upload.php | 1,767 ▼40 | 5.01 ▼0.00 | 140.00 ▼27.47 | 144.84 ▲23.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flying-twitter-birds/flying-twitterbirds.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: flying bird preview, twitter fly bird, twitter badge, flying twitter bird, twitter...
flying-twitter-birds/flying-twitterbirds.php 77% from 13 tests
"Flying Twitter Birds" version 1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("flying-twitter-birds.php" instead of "flying-twitterbirds.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 298 characters long)
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
No dangerous file extensions were detected4,085 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 128 | 72 | 3,928 |
PHP | 1 | 10 | 10 | 157 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 5 | |
▷ Named functions | 5 | 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
22 PNG files occupy 0.86MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 41.87KB | 21.26KB | ▼ 49.22% |
js/images/kame-hame-ha.png | 48.45KB | 15.08KB | ▼ 68.88% |
js/images/christmas.png | 74.91KB | 19.94KB | ▼ 73.38% |
js/images/black-hwak.png | 57.72KB | 7.11KB | ▼ 87.69% |
images/orange-man-thumb.png | 5.28KB | 2.18KB | ▼ 58.81% |