62% fly-twitter-on-blog

Code Review | Twitter Bird on Site

WordPress plugin Twitter Bird on Site scored62%from 54 tests.

About plugin

  • Plugin page: fly-twitter-on-blog
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-3.8
  • WordPress version: 6.3.1
  • First release: Apr 6, 2012
  • Latest release: Feb 19, 2014
  • Number of updates: 35
  • Update frequency: every 19.5 days
  • Top authors: gcodelabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /7,224 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.96MB] [CPU: ▼42.34ms] Passed 4 tests

This is a short check of server-side resources used by Twitter Bird on Site
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.48 ▼6.03
Dashboard /wp-admin3.00 ▼0.3526.23 ▼46.77
Posts /wp-admin/edit.php3.00 ▼0.3627.49 ▼31.80
Add New Post /wp-admin/post-new.php3.00 ▼2.8928.36 ▼77.20
Media Library /wp-admin/upload.php3.00 ▼0.2324.95 ▼13.59
Fly Twitter /wp-admin/options-general.php?page=FlyTwitter3.0030.66

Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
animated_account
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
animated_tweet
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Twitter Bird on Site
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.39 ▼0.285.74 ▲3.6245.23 ▲0.31
Dashboard /wp-admin2,202 ▲245.62 ▼0.0285.65 ▼37.0437.85 ▼8.55
Posts /wp-admin/edit.php2,107 ▲42.03 ▲0.0443.49 ▲4.5234.04 ▼6.13
Add New Post /wp-admin/post-new.php1,532 ▼623.31 ▲0.35657.88 ▼55.7660.30 ▼5.39
Media Library /wp-admin/upload.php1,401 ▲44.22 ▲0.07100.91 ▼36.0249.17 ▼7.22
Fly Twitter /wp-admin/options-general.php?page=FlyTwitter1,2562.1645.4250.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • animated_tweet
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • animated_account
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% 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 errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=FlyTwitter
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/fly-twitter-on-blog/twitterfeeds.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/fly-twitter-on-blog/fly-twitter-on-blog.php:90

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
The official readme.txt is a good inspiration

fly-twitter-on-blog/fly-twitter-on-blog.php 92% from 13 tests

The entry point to "Twitter Bird on Site" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 299 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin646 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript101448
PHP23969198

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
twitterbird.png63.93KB21.32KB▼ 66.65%