Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼7.19ms] Passed 4 tests
An overview of server-side resources used by Hobbynote Twitter Cards
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.66 ▼6.71 |
Dashboard /wp-admin | 3.45 ▲0.15 | 48.15 ▼7.32 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.72 ▲1.87 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 87.96 ▼16.59 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 42.72 ▲5.22 |
Homepage /wp-admin/admin.php?page=hn_tc_homepage | 3.34 | 36.13 |
Images /wp-admin/admin.php?page=hn_tc_images | 3.34 | 41.64 |
Général /wp-admin/admin.php?page=hn_tc_general | 3.32 | 32.56 |
SEO /wp-admin/admin.php?page=hn_tc_seo | 3.34 | 35.00 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
hn_tc |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Hobbynote Twitter Cards: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲114 | 13.22 ▼1.17 | 1.90 ▲0.01 | 41.24 ▼3.72 |
Dashboard /wp-admin | 2,255 ▲67 | 5.03 ▲0.15 | 100.39 ▼10.27 | 83.06 ▲38.29 |
Posts /wp-admin/edit.php | 2,132 ▲40 | 2.02 ▼0.02 | 34.89 ▼1.00 | 33.70 ▼4.24 |
Add New Post /wp-admin/post-new.php | 1,556 ▲33 | 23.10 ▼0.08 | 761.11 ▲94.38 | 73.78 ▲21.06 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.14 ▲0.01 | 111.72 ▼4.09 | 71.39 ▲19.63 |
Debuger /wp-admin/admin.php?page=javascript:void((function(){window.open("https:/www.hobbynote.com/smo-analyzer/")})()) | 28 | 0.44 | 0.06 | 3.82 |
Homepage /wp-admin/admin.php?page=hn_tc_homepage | 885 | 2.16 | 23.79 | 38.80 |
Images /wp-admin/admin.php?page=hn_tc_images | 954 | 2.16 | 26.67 | 34.54 |
Général /wp-admin/admin.php?page=hn_tc_general | 913 | 2.07 | 22.65 | 31.39 |
Validation /wp-admin/admin.php?page=javascript:void((function(){window.open("https:/dev.twitter.com/docs/cards/validation/validator")})()) | 28 | 0.44 | 0.06 | 4.20 |
SEO /wp-admin/admin.php?page=hn_tc_seo | 941 | 2.03 | 25.88 | 31.62 |
Documentation /wp-admin/admin.php?page=javascript:void((function(){window.open("https:/dev.twitter.com/docs/cards/")})()) | 28 | 0.44 | 0.07 | 4.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- hn_tc
- db_upgraded
Smoke tests 25% 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/admin.php?page=hn_tc_general
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'hn_tc_general' not found or invalid function name
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/hobbynote-twitter-cards/hn-twitter-cards.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=javascript:void((function(){window.open("https:/www.hobbynote.com/smo-analyzer/")})())
- > Network (severe)
wp-admin/admin.php?page=javascript:void((function(){window.open(%22https:/www.hobbynote.com/smo-analyzer/%22)})()) - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=javascript:void((function(){window.open("https:/dev.twitter.com/docs/cards/validation/validator")})())
- > Network (severe)
wp-admin/admin.php?page=javascript:void((function(){window.open(%22https:/dev.twitter.com/docs/cards/validation/validator%22)})()) - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=javascript:void((function(){window.open("https:/dev.twitter.com/docs/cards/")})())
- > Network (severe)
wp-admin/admin.php?page=javascript:void((function(){window.open(%22https:/dev.twitter.com/docs/cards/%22)})()) - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Screenshot du backoffice du plugin (screenshot-1.png))
hobbynote-twitter-cards/hn-twitter-cards.php 92% from 13 tests
The main file in "Hobbynote Twitter Cards" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("hobbynote-twitter-cards.php" instead of "hn-twitter-cards.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
No dangerous file extensions were detected787 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 51 | 576 |
CSS | 1 | 30 | 0 | 169 |
JavaScript | 1 | 11 | 11 | 42 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/twitter.png | 1.47KB | 0.46KB | ▼ 68.92% |