Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.33ms] Passed 4 tests
A check of server-side resources used by hCard Widget for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.08 ▼4.46 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.74 ▼5.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.86 ▲0.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.36 ▼14.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.37 ▼0.29 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by hCard Widget for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.10 | 1.62 ▼0.28 | 41.82 ▲4.38 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▲0.01 | 112.01 ▲6.02 | 41.84 ▼0.89 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.04 | 38.77 ▼2.26 | 34.91 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.55 ▼0.89 | 668.27 ▼10.48 | 58.93 ▼0.26 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.07 | 93.51 ▼5.79 | 44.32 ▲3.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/hcard-widget/parts/widgets/individual.php
- > /wp-content/plugins/hcard-widget/parts/widgets/organization.php
- > /wp-content/plugins/hcard-widget/parts/help/css-help.php
- 95× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hcard-widget/parts/widgets/individual.php on line 19
- > PHP Notice
Undefined variable: settings in wp-content/plugins/hcard-widget/parts/widgets/individual.php on line 91
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hcard-widget/parts/widgets/individual.php on line 46
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hcard-widget/parts/widgets/individual.php on line 97
- > PHP Notice
Undefined variable: settings in wp-content/plugins/hcard-widget/parts/widgets/organization.php on line 137
- > PHP Notice
Undefined variable: settings in wp-content/plugins/hcard-widget/parts/widgets/organization.php on line 25
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hcard-widget/parts/widgets/organization.php on line 129
- > PHP Notice
Undefined variable: settings in wp-content/plugins/hcard-widget/parts/widgets/organization.php on line 129
- > PHP Notice
Undefined variable: settings in wp-content/plugins/hcard-widget/parts/widgets/individual.php on line 85
- > PHP Notice
Undefined variable: settings in wp-content/plugins/hcard-widget/parts/widgets/organization.php on line 141
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: seo, widget piklist, schemaorg, hcard, local seo...
hcard-widget/hcard-widget.php Passed 13 tests
Analyzing the main PHP file in "hCard Widget for WordPress" version 2.2.2
79 characters long description:
Creates widget that outputs contact information in Schema.org compliant format.
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
No dangerous file extensions were detected2,390 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 1,158 | 115 | 1,221 |
CSS | 1 | 276 | 3 | 1,022 |
PO File | 1 | 53 | 70 | 147 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 24.33 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 5 | 26.32% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.08MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
hcard-logo.png | 86.22KB | 8.73KB | ▼ 89.88% |