89% replaybird

Code Review | ReplayBird

WordPress plugin ReplayBird scored89%from 54 tests.

About plugin

  • Plugin page: replaybird
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Feb 28, 2020
  • Latest release: Nov 11, 2022
  • Number of updates: 14
  • Update frequency: every 70.6 days
  • Top authors: replaybird (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /809 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.48ms] Passed 4 tests

A check of server-side resources used by ReplayBird
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.08 ▲2.25
Dashboard /wp-admin3.33 ▼0.0144.15 ▼19.25
Posts /wp-admin/edit.php3.44 ▲0.0944.29 ▼4.96
Add New Post /wp-admin/post-new.php5.91 ▲0.0378.95 ▼22.91
Media Library /wp-admin/upload.php3.25 ▲0.0334.20 ▲1.22
ReplayBird /wp-admin/options-general.php?page=replaybird_settings3.2231.09

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
replaybird_version
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ReplayBird
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.26 ▼0.971.79 ▲0.0938.23 ▼6.01
Dashboard /wp-admin2,212 ▲244.87 ▼0.03110.68 ▲6.1937.80 ▼4.60
Posts /wp-admin/edit.php2,095 ▲32.03 ▲0.0141.30 ▲1.2134.25 ▼8.03
Add New Post /wp-admin/post-new.php1,533 ▲1923.16 ▲5.55644.28 ▼42.5755.01 ▲2.23
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0997.68 ▼13.1348.68 ▲1.53
ReplayBird /wp-admin/options-general.php?page=replaybird_settings8222.0125.1623.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • replaybird_version
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • License uri: Invalid URI found ("")
You can look at the official readme.txt

replaybird/index.php 92% from 13 tests

Analyzing the main PHP file in "ReplayBird" version 2.0.1
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("replaybird.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin219 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47195195
CSS14024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods34
▷ Static methods1029.41%
▷ Public methods2470.59%
▷ Protected methods00.00%
▷ Private methods1029.41%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/images/logo.png11.51KB6.00KB▼ 47.91%
src/images/logo-sm.png11.51KB6.00KB▼ 47.91%
trunk/src/images/logo.png11.51KB6.00KB▼ 47.91%
trunk/src/images/logo-sm.png11.51KB6.00KB▼ 47.91%