84% honking-goose

Code Review | Honking Goose

WordPress plugin Honking Goose scored84%from 54 tests.

About plugin

  • Plugin page: honking-goose
  • Plugin version: 1.7.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Oct 31, 2019
  • Latest release: Feb 12, 2021
  • Number of updates: 7
  • Update frequency: every 67.6 days
  • Top authors: imgerson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /639 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.00MB] [CPU: ▼4.47ms] Passed 4 tests

Analyzing server-side resources used by Honking Goose
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0042.50 ▼3.54
Dashboard /wp-admin3.57 ▲0.0149.07 ▼5.18
Posts /wp-admin/edit.php3.68 ▲0.0054.32 ▲2.42
Add New Post /wp-admin/post-new.php6.17 ▲0.0292.75 ▼8.76
Media Library /wp-admin/upload.php3.49 ▲0.0037.57 ▼0.41

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

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

Browser metrics Passed 4 tests

Honking Goose: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.311.69 ▼0.0343.18 ▼2.08
Dashboard /wp-admin2,195 ▲155.60 ▼0.0986.70 ▼2.5038.63 ▼2.42
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0640.74 ▼2.7636.47 ▼1.54
Add New Post /wp-admin/post-new.php1,545 ▲1423.38 ▲0.07675.32 ▲1.2771.89 ▲19.38
Media Library /wp-admin/upload.php1,400 ▼34.26 ▲0.0697.29 ▼11.9844.55 ▼2.35

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_blog_admin() in wp-content/plugins/honking-goose/honking-goose.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: honk, prank, goose

honking-goose/honking-goose.php Passed 13 tests

This is the main PHP file of "Honking Goose" version 1.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
A useless plugin that honks like a goose every time you press the "space" key

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected28 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP131218
JavaScript12010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin