93% flying-twitter-birds

Code Review | Flying Twitter Birds

WordPress plugin Flying Twitter Birds scored 93% from 54 tests.

About plugin

  • Plugin page: flying-twitter-birds
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-5.3.2
  • WordPress version: 5.8.1
  • First release: Sep 27, 2014
  • Latest release: Mar 13, 2020
  • Number of updates: 61
  • Update frequency: every 33.8 days
  • Top authors: mayursojitra (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 2,955 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0336.03 ▲3.75
Dashboard /wp-admin3.09 ▲0.0445.46 ▼2.71
Posts /wp-admin/edit.php3.14 ▲0.0449.72 ▲0.55
Add New Post /wp-admin/post-new.php5.45 ▲0.0194.13 ▼589.96
Media Library /wp-admin/upload.php3.03 ▲0.0338.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

Browser metrics Passed 4 tests

Flying Twitter Birds: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲12215.82 ▲0.2611.96 ▲3.8050.14 ▲2.64
Dashboard /wp-admin2,982 ▲455.92 ▼0.01137.42 ▼17.38140.97 ▲21.67
Posts /wp-admin/edit.php2,759 ▲202.58 ▼0.1166.62 ▼8.7492.36 ▼14.35
Add New Post /wp-admin/post-new.php1,696 ▲1318.37 ▼0.38396.38 ▲3.14112.08 ▼0.73
Media Library /wp-admin/upload.php1,767 ▼405.01 ▼0.00140.00 ▼27.47144.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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-2.png41.87KB21.26KB▼ 49.22%
js/images/kame-hame-ha.png48.45KB15.08KB▼ 68.88%
js/images/christmas.png74.91KB19.94KB▼ 73.38%
js/images/black-hwak.png57.72KB7.11KB▼ 87.69%
images/orange-man-thumb.png5.28KB2.18KB▼ 58.81%