Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/social-hashtags/social_hashtag.php+146
Invalid argument supplied for foreach()
Server metrics [RAM: ▼1.02MB] [CPU: ▼39.27ms] Passed 4 tests
Analyzing server-side resources used by Social Hashtags
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▼0.51 | 16.07 ▼23.59 |
Dashboard /wp-admin | 2.99 ▼0.31 | 22.18 ▼24.58 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 18.66 ▼33.94 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 18.57 ▼74.95 |
Media Library /wp-admin/upload.php | 3.00 ▼0.24 | 18.06 ▼13.82 |
Add New /wp-admin/post-new.php?post_type=social_hashtag | 3.00 | 16.62 |
Social Hashtags /wp-admin/edit.php?post_type=social_hashtag | 3.00 | 16.36 |
Social Hashtag Tags /wp-admin/edit-tags.php?taxonomy=social_hashtag_tags&post_type=social_hashtag | 3.00 | 17.64 |
Social Hashtag Categories /wp-admin/edit-tags.php?taxonomy=social_hashtag_categories&post_type=social_hashtag | 3.00 | 17.53 |
Social Hashtag /wp-admin/options-general.php?page=social_hashtag | 3.00 | 15.72 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Hashtags
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲111 | 13.26 ▼1.17 | 5.42 ▲3.62 | 45.51 ▼4.72 |
Dashboard /wp-admin | 2,247 ▲62 | 5.09 ▲0.18 | 107.20 ▲1.06 | 39.89 ▼3.85 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.02 ▲0.01 | 40.91 ▲0.54 | 35.18 ▼5.83 |
Add New Post /wp-admin/post-new.php | 1,562 ▲20 | 23.22 ▲5.10 | 654.35 ▼8.82 | 61.16 ▼5.48 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.22 ▲0.04 | 93.77 ▼4.18 | 40.52 ▼2.57 |
Add New /wp-admin/post-new.php?post_type=social_hashtag | 2,523 | 7.95 | 194.68 | 72.54 |
Social Hashtags /wp-admin/edit.php?post_type=social_hashtag | 1,110 | 1.95 | 36.85 | 31.04 |
Social Hashtag Tags /wp-admin/edit-tags.php?taxonomy=social_hashtag_tags&post_type=social_hashtag | 1,275 | 2.13 | 26.89 | 26.85 |
Social Hashtag Categories /wp-admin/edit-tags.php?taxonomy=social_hashtag_categories&post_type=social_hashtag | 1,300 | 2.15 | 27.37 | 28.63 |
Social Hashtag /wp-admin/options-general.php?page=social_hashtag | 875 | 2.07 | 26.75 | 26.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/social-hashtags/lib/posttypes.php+12
Undefined property: SOCIAL_HASHTAG_CACHE::$cpt_slug
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=social_hashtag
- > Notice in wp-content/plugins/social-hashtags/social_hashtag-options.php+46
Undefined property: SOCIAL_HASHTAG_CACHE::$cpt_slug
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/social-hashtags/social_hashtag-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/social-hashtags/social_hashtag.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/social-hashtags/lib/shortcodes.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/social-hashtags/lib/archive-social_hashtag.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-hashtags/lib/posttypes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
9 plugin tags: instagram, photos, hashtags, teleportd, twitter...
social-hashtags/social_hashtag.php 85% from 13 tests
This is the main PHP file of "Social Hashtags" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("social-hashtags.php" instead of "social_hashtag.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 324 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,680 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 226 | 112 | 1,636 |
Markdown | 1 | 20 | 0 | 31 |
CSS | 1 | 11 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 19.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
There are no PNG files in this plugin