78% birdseed

Code Review | BirdSeed

WordPress plugin BirdSeed scored78%from 54 tests.

About plugin

  • Plugin page: birdseed
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 26, 2018
  • Latest release: Dec 12, 2022
  • Number of updates: 17
  • Update frequency: every 89.3 days
  • Top authors: birdseedapp (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /4,626 total downloads

Benchmarks

Plugin footprint 83% 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.16MB] [CPU: ▼12.74ms] Passed 4 tests

Analyzing server-side resources used by BirdSeed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.12 ▼10.42
Dashboard /wp-admin3.21 ▼0.0935.88 ▼10.19
Posts /wp-admin/edit.php3.28 ▼0.0836.45 ▼13.98
Add New Post /wp-admin/post-new.php5.45 ▼0.4478.29 ▼16.35
Media Library /wp-admin/upload.php3.22 ▼0.0236.57 ▲1.69

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

BirdSeed: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8914.74 ▲0.431.76 ▼0.1344.51 ▼3.45
Dashboard /wp-admin2,241 ▲506.00 ▲1.08108.98 ▲0.6970.36 ▲26.56
Posts /wp-admin/edit.php2,127 ▲382.02 ▼0.0138.83 ▼2.8238.33 ▼0.84
Add New Post /wp-admin/post-new.php1,708 ▲19424.76 ▲7.33683.75 ▼5.5553.79 ▼2.05
Media Library /wp-admin/upload.php1,420 ▲324.23 ▲0.0396.38 ▼12.3946.97 ▲2.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/birdseed/views/admin.php
    • > /wp-content/plugins/birdseed/views/public.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: birdseed_token in wp-content/plugins/birdseed/views/public.php on line 1

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === birdseed === )
  • Screenshots: A description for screenshot #1 is required in birdseed/assets to your readme.txt
The official readme.txt is a good inspiration

birdseed/birdseed.php Passed 13 tests

This is the main PHP file of "BirdSeed" version 2.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Adds the BirdSeed widget embed code to your Wordpress website.

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 detected72 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5132872

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
3 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png9.14KB3.59KB▼ 60.73%
assets/icon-256x256.png10.16KB3.63KB▼ 64.28%
assets/screenshot-1.png65.09KB13.13KB▼ 79.83%