Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.08ms] Passed 4 tests
A check of server-side resources used by Better Share Links shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.35 ▼1.28 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.30 ▼2.28 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.81 ▼6.30 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.24 ▼14.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.35 ▼0.13 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Better Share Links shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.40 ▲0.03 | 2.13 ▲0.27 | 42.94 ▼1.39 |
Dashboard /wp-admin | 2,192 ▲15 | 5.54 ▼0.05 | 85.34 ▼2.40 | 38.50 ▼6.58 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.02 | 34.80 ▼3.70 | 36.51 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,545 ▼5 | 23.07 ▼0.41 | 667.57 ▼11.00 | 50.77 ▼6.39 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▲0.01 | 93.65 ▼12.03 | 45.20 ▼0.07 |
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_ajaxpostloadmoreadmin
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-share-links-shortcode/better_share_links.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: urls, shortcode, screenshot, embed, links
better-share-links-shortcode/better_share_links.php 92% from 13 tests
Analyzing the main PHP file in "Better Share Links shortcode" version 1.0.0
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("better-share-links-shortcode.php" instead of "better_share_links.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,400 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 216 | 325 | 1,389 |
JavaScript | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 163.50 |
▷ Minimum class complexity | 130.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 1 | 1.18% |
▷ Public methods | 69 | 81.18% |
▷ Protected methods | 16 | 18.82% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 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
There were not PNG files found in your plugin