84% woodpecker

Code Review | Woodpecker for WordPress

WordPress plugin Woodpecker for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: woodpecker
  • Plugin version: 3.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Dec 24, 2019
  • Latest release: Feb 2, 2023
  • Number of updates: 40
  • Update frequency: every 28.4 days
  • Top authors: woodpeckerleadform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,797 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.23MB] [CPU: ▲0.34ms] Passed 4 tests

A check of server-side resources used by Woodpecker for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2042.88 ▲1.52
Dashboard /wp-admin3.58 ▲0.2854.64 ▲0.21
Posts /wp-admin/edit.php3.64 ▲0.2856.70 ▲5.89
Add New Post /wp-admin/post-new.php6.12 ▲0.2388.19 ▼5.58
Media Library /wp-admin/upload.php3.42 ▲0.2042.64 ▲5.19

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Woodpecker for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,074 ▲32820.19 ▲5.556.58 ▲4.7637.39 ▼6.33
Dashboard /wp-admin2,369 ▲18110.66 ▲4.76184.29 ▲65.56113.63 ▲70.19
Posts /wp-admin/edit.php2,289 ▲2007.07 ▲5.0380.90 ▲42.5580.95 ▲44.25
Add New Post /wp-admin/post-new.php1,535 ▲1622.76 ▼0.27711.47 ▲29.2057.21 ▼0.91
Media Library /wp-admin/upload.php1,419 ▲317.68 ▲3.47115.58 ▲1.3193.85 ▲48.34

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

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

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)
Good news, no errors were detected

SRP 50% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woodpecker/public/partials/wfw-public-shortcode.php

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: woodpecker connector, newsletter, woodpecker leadform, subscribe list, woodpecker...

woodpecker/woodpecker.php 85% from 13 tests

This is the main PHP file of "Woodpecker for WordPress" version 3.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,168 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP112615121,075
SVG410166
JavaScript52025
CSS2112

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.43
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods2670.27%
▷ Protected methods00.00%
▷ Private methods1129.73%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/woodpecker-co.png2.64KB1.53KB▼ 42.13%
admin/lib/img_detective.6117b279b47bc5986a8f.png15.52KB8.17KB▼ 47.33%