Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▲1.92ms] Passed 4 tests
A check of server-side resources used by HQ60 Fidelity Card
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 45.34 ▲2.12 |
Dashboard /wp-admin | 3.61 ▲0.31 | 55.33 ▲5.13 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 52.95 ▼0.58 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 92.12 ▲1.02 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 43.32 ▲8.47 |
HQ60 - Registrazioni non confermate /wp-admin/edit.php?post_type=hq60_temp_reg_cp | 3.52 | 42.50 |
HQ60 - Shortcode list /wp-admin/admin.php?page=hq60-fidelity-card-shortcode | 3.45 | 34.77 |
HQ60 /wp-admin/admin.php?page=hq60-fidelity-card | 3.45 | 37.86 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for HQ60 Fidelity Card
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.26 ▼1.10 | 1.98 ▲0.08 | 44.30 ▲2.99 |
Dashboard /wp-admin | 2,229 ▲41 | 4.88 ▼0.01 | 103.16 ▼1.60 | 38.48 ▼3.42 |
Posts /wp-admin/edit.php | 2,115 ▲23 | 2.04 ▲0.05 | 35.72 ▼8.92 | 34.32 ▼4.77 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 17.56 ▼0.08 | 679.44 ▼28.98 | 61.46 ▲0.56 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.20 ▲0.06 | 102.60 ▼15.06 | 42.28 ▼9.00 |
HQ60 - Registrazioni non confermate /wp-admin/edit.php?post_type=hq60_temp_reg_cp | 1,068 | 1.94 | 31.86 | 30.61 |
HQ60 - Shortcode list /wp-admin/admin.php?page=hq60-fidelity-card-shortcode | 876 | 2.03 | 25.33 | 26.52 |
HQ60 /wp-admin/admin.php?page=hq60-fidelity-card | 819 | 2.06 | 24.84 | 28.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hq60-fidelity-card/views/email/email-temp-password-registration.php
- > /wp-content/plugins/hq60-fidelity-card/views/email/email-temp-registration-confirm.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/hq60-fidelity-card/views/frontend/user-menu.php:2
- > PHP Fatal error
Uncaught Error: Class 'Hq60fidelitycard\\Admin\\AdminMenu' not found in wp-content/plugins/hq60-fidelity-card/src/Hq60fidelitycard/Admin/Admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/hq60-fidelity-card/views/frontend/user-menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/hq60-fidelity-card/views/admin/settings-generic.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/hq60-fidelity-card/views/frontend/form/user-register.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/hq60-fidelity-card/views/frontend/user-manage-password.php:1
- > PHP Fatal error
Uncaught Error: Class 'Hq60fidelitycard\\Base' not found in wp-content/plugins/hq60-fidelity-card/src/Hq60fidelitycard/Database/Database.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/hq60-fidelity-card/views/admin/shortcode-list.php:1
- > PHP Fatal error
Uncaught Error: Class 'Hq60fidelitycard\\Base' not found in wp-content/plugins/hq60-fidelity-card/src/Hq60fidelitycard/Frontend/Frontend.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/hq60-fidelity-card/views/frontend/user-data.php:43
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: The plugin tags were not defined
hq60-fidelity-card/hq60fidelitycard.php 92% from 13 tests
The primary PHP file in "HQ60 Fidelity Card" version 1.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hq60-fidelity-card.php" instead of "hq60fidelitycard.php")
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 detected2,588 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,928 | 1,403 | 2,568 |
CSS | 2 | 0 | 2 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 45.05% |
▷ Protected methods | 28 | 25.23% |
▷ Private methods | 33 | 29.73% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin