10% huckabuy

Code Review | Huckabuy

WordPress plugin Huckabuy scored10%from 54 tests.

About plugin

  • Plugin page: huckabuy
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2023
  • Latest release: Jan 24, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: huckabuy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /192 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/huckabuy/includes/class-huckabuy-settings.php+25
    Undefined property: stdClass::$data

Server metrics [RAM: ▼1.94MB] [CPU: ▲306.17ms] 75% from 4 tests

Server-side resources used by Huckabuy
The following require your attention
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 306.17ms on /wp-admin/options-general.php?page=huckabuy-setting)
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.41442.62 ▲402.04
Dashboard /wp-admin2.07 ▼1.27373.41 ▲313.02
Posts /wp-admin/edit.php2.07 ▼1.28351.55 ▲306.73
Add New Post /wp-admin/post-new.php2.07 ▼3.81367.20 ▲273.18
Media Library /wp-admin/upload.php2.07 ▼1.15364.49 ▲331.73
Huckabuy /wp-admin/options-general.php?page=huckabuy-setting2.08372.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
huckabuy_option_name
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Huckabuy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲13913.53 ▼0.855.26 ▲3.1152.92 ▲9.42
Dashboard /wp-admin2,214 ▲264.91 ▼0.19111.39 ▼4.3538.20 ▼5.87
Posts /wp-admin/edit.php2,100 ▲112.14 ▲0.0935.73 ▼0.8131.27 ▼5.26
Add New Post /wp-admin/post-new.php1,520 ▲121.05 ▼2.12655.42 ▼37.0472.15 ▲14.87
Media Library /wp-admin/upload.php1,396 ▲84.24 ▲0.04108.96 ▼2.8546.75 ▼3.88
Huckabuy /wp-admin/options-general.php?page=huckabuy-setting1,0711.7025.6234.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-includes/plugin.php+1003
    Array to string conversion
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • huckabuy_option_name

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=huckabuy-setting
    • > Notice in wp-includes/plugin.php+1003
    Array to string conversion

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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/huckabuy/public/partials/huckabuy-public-display.php
    • > /wp-content/plugins/huckabuy/admin/partials/huckabuy-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: seo, structured data, marketing, rich result, google...

huckabuy/huckabuy.php Passed 13 tests

"Huckabuy" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
Huckabuy’s Structured Data plugin helps search engines understand your content and improve your appearance in search results.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected597 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP13172553477
JavaScript2213467
CSS28544
SVG1006
Bourne Shell1503

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.12
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3487.18%
▷ Protected methods00.00%
▷ Private methods512.82%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected