83% white-dove

Code Review | White Dove (CSS Animated Flying Bird)

WordPress plugin White Dove (CSS Animated Flying Bird) scored83%from 54 tests.

About plugin

  • Plugin page: white-dove
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: Oct 25, 2019
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: wrconsultancy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /520 total downloads

Benchmarks

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

Server-side resources used by White Dove (CSS Animated Flying Bird)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.54 ▲0.65
Dashboard /wp-admin3.31 ▲0.0046.12 ▲1.62
Posts /wp-admin/edit.php3.36 ▲0.0046.75 ▲0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.51 ▼6.43
Media Library /wp-admin/upload.php3.23 ▲0.0034.71 ▼0.47

Server storage [IO: ▲0.03MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

White Dove (CSS Animated Flying Bird): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.22 ▼1.161.73 ▼0.0842.49 ▼2.94
Dashboard /wp-admin2,206 ▲214.83 ▼1.05113.23 ▲9.8743.67 ▼0.82
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0533.16 ▼4.5133.79 ▼1.49
Add New Post /wp-admin/post-new.php1,533 ▲1423.38 ▲0.10644.51 ▼6.6053.37 ▲5.51
Media Library /wp-admin/upload.php1,391 ▼04.23 ▲0.0395.23 ▼1.0841.25 ▼1.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/white-dove/white-dove.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
  • Screenshots: Screenshot #1 (No screenshots available.) image missing
The official readme.txt might help

white-dove/white-dove.php 92% from 13 tests

The primary PHP file in "White Dove (CSS Animated Flying Bird)" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.2.4" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected161 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS150150
PHP122711

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/bird-cells.png19.63KB13.45KB▼ 31.48%