64% pigeon-pack

Code Review | Pigeon Pack

WordPress plugin Pigeon Pack scored64%from 54 tests.

About plugin

  • Plugin page: pigeon-pack
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.8
  • WordPress version: 6.3.1
  • First release: Jun 20, 2014
  • Latest release: Feb 4, 2017
  • Number of updates: 27
  • Update frequency: every 46.9 days
  • Top authors: layotte (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /4,182 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.53MB] [CPU: ▼51.80ms] Passed 4 tests

This is a short check of server-side resources used by Pigeon Pack
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.46 ▼1.005.24 ▼34.67
Dashboard /wp-admin2.48 ▼0.836.54 ▼42.79
Posts /wp-admin/edit.php2.48 ▼0.888.11 ▼40.47
Add New Post /wp-admin/post-new.php2.48 ▼3.417.32 ▼89.26
Media Library /wp-admin/upload.php2.48 ▼0.756.17 ▼31.54

Server storage [IO: ▲0.43MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 60 new files
Database: 1 new table, 8 new options
New tables
wp_pigeonpack_subscribers
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_pigeonpack
pigeonpack
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Pigeon Pack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲16113.49 ▼0.639.06 ▲7.1638.82 ▼5.18
Dashboard /wp-admin2,233 ▲535.56 ▼0.1288.67 ▼7.0769.64 ▲26.66
Posts /wp-admin/edit.php2,141 ▲412.01 ▲0.0536.59 ▼2.8533.18 ▼6.57
Add New Post /wp-admin/post-new.php1,577 ▲4422.97 ▲0.20772.43 ▲107.9453.93 ▼9.19
Media Library /wp-admin/upload.php1,441 ▲414.22 ▼0.01104.48 ▼8.1567.62 ▲23.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/pigeon-pack/class.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; PigeonPack has a deprecated constructor
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_pigeonpack_subscribers
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_pigeonpack
    • can_compress_scripts
    • pigeonpack
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pigeon-pack/pigeonpack.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pigeon-pack/functions.php:122
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pigeon-pack/list-post-type.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pigeon-pack/campaign-post-type.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/pigeon-pack/processing.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pigeon-pack/widgets.php:21

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: widget, email, email widget, campaign, email newsletter...

pigeon-pack/pigeonpack.php 85% from 13 tests

The main PHP script in "Pigeon Pack" version 1.3.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pigeon-pack.php" instead of "pigeonpack.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin5,007 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP91,7311,2063,201
CSS66543837
PO File1270284697
JavaScript81640272

PHP code Passed 2 tests

A brief analysis 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.42
Average class complexity27.50
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions79
▷ Named functions79100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
32 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/blasts-16x16.png0.36KB0.34KB▼ 3.83%
images/delete-16x16.png0.46KB0.39KB▼ 17.02%
images/add-32x32.png0.90KB0.83KB▼ 8.10%
css/smoothness/images/ui-bg_glass_75_dadada_1x400.png0.37KB0.18KB▼ 49.60%
css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png0.27KB0.11KB▼ 56.99%