62% anmiated-twitter-bird

Code Review | Animated Twitter Bird

WordPress plugin Animated Twitter Bird scored 62% from 54 tests.

About plugin

  • Plugin page: anmiated-twitter-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-4.1
  • WordPress version: 5.8.1
  • First release: Mar 17, 2011
  • Latest release: Dec 24, 2014
  • Number of updates: 14
  • Update frequency: every 98.6 days
  • Top authors: techlineinfo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 15,847 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.91MB] [CPU: ▼167.24ms] Passed 4 tests

An overview of server-side resources used by Animated Twitter Bird
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1230.96 ▲11.29
Dashboard /wp-admin2.74 ▼0.3216.73 ▼27.31
Posts /wp-admin/edit.php2.74 ▼0.3718.70 ▼20.17
Add New Post /wp-admin/post-new.php2.74 ▼2.6918.91 ▼613.77
Media Library /wp-admin/upload.php2.74 ▼0.2624.69 ▼7.70
AnimatedTwitterBird /wp-admin/options-general.php?page=AnimatedTwitterBird2.7429.47

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 2 new options
New WordPress options
animated_account
animated_tweet

Browser metrics Passed 4 tests

Checking browser requirements for Animated Twitter Bird
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,696 ▲10016.23 ▲0.5711.31 ▲2.8849.53 ▲3.09
Dashboard /wp-admin2,975 ▲416.06 ▲0.08132.90 ▼5.95109.61 ▼5.38
Posts /wp-admin/edit.php2,744 ▲82.69 ▼0.0165.96 ▲3.6792.87 ▲8.17
Add New Post /wp-admin/post-new.php1,501 ▼18218.86 ▲0.08378.94 ▲14.15107.14 ▼3.26
Media Library /wp-admin/upload.php1,812 ▲795.03 ▲0.04162.40 ▲13.15145.50 ▲27.79
AnimatedTwitterBird /wp-admin/options-general.php?page=AnimatedTwitterBird1,0322.0661.1788.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5495
    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: 2 options
    • animated_tweet
    • animated_account

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=AnimatedTwitterBird
    • > User deprecated in wp-includes/functions.php+5495
    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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/anmiated-twitter-bird/twitterfeedreader.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/anmiated-twitter-bird/AnimatedTwitterBird.php:90

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)
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Animated Bird)
  • Screenshots: A description for screenshot #0 is missing in anmiated-twitter-bird/assets to your readme.txt
Please take inspiration from this readme.txt

anmiated-twitter-bird/AnimatedTwitterBird.php 85% from 13 tests

"Animated Twitter Bird" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("anmiated-twitter-bird.php" instead of "AnimatedTwitterBird.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 473 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
No dangerous file extensions were detected628 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript101448
PHP24863180

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png28.71KB11.02KB▼ 61.63%
birdsprite.png63.93KB21.32KB▼ 66.65%