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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 442.62 ▲402.04 |
Dashboard /wp-admin | 2.07 ▼1.27 | 373.41 ▲313.02 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 351.55 ▲306.73 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 367.20 ▲273.18 |
Media Library /wp-admin/upload.php | 2.07 ▼1.15 | 364.49 ▲331.73 |
Huckabuy /wp-admin/options-general.php?page=huckabuy-setting | 2.08 | 372.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲139 | 13.53 ▼0.85 | 5.26 ▲3.11 | 52.92 ▲9.42 |
Dashboard /wp-admin | 2,214 ▲26 | 4.91 ▼0.19 | 111.39 ▼4.35 | 38.20 ▼5.87 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.14 ▲0.09 | 35.73 ▼0.81 | 31.27 ▼5.26 |
Add New Post /wp-admin/post-new.php | 1,520 ▲1 | 21.05 ▼2.12 | 655.42 ▼37.04 | 72.15 ▲14.87 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.24 ▲0.04 | 108.96 ▼2.85 | 46.75 ▼3.88 |
Huckabuy /wp-admin/options-general.php?page=huckabuy-setting | 1,071 | 1.70 | 25.62 | 34.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 172 | 553 | 477 |
JavaScript | 2 | 21 | 34 | 67 |
CSS | 2 | 8 | 5 | 44 |
SVG | 1 | 0 | 0 | 6 |
Bourne Shell | 1 | 5 | 0 | 3 |
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 code | 0.13 |
Average class complexity | 3.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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