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.13MB] [CPU: ▼4.64ms] Passed 4 tests
An overview of server-side resources used by Send link to friend
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.93 ▼0.11 |
Dashboard /wp-admin | 3.44 ▲0.10 | 44.03 ▼13.63 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.25 ▲4.41 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 80.75 ▼6.17 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 33.63 ▲1.35 |
Send link to friend /wp-admin/options-general.php?page=send-link-to-friend | 3.33 | 32.28 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 20 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
gSendtofriend_On_Archives |
theysaidso_admin_options |
gSendtofriend_fromname |
gSendtofriend_captcha_secret |
gSendtofriend_On_Posts |
gSendtofriend_On_Pages |
gSendtofriend_mailcontent |
gSendtofriend_captcha |
... |
Browser metrics Passed 4 tests
Send link to friend: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲133 | 13.81 ▼0.29 | 7.92 ▲6.27 | 39.12 ▼4.56 |
Dashboard /wp-admin | 2,199 ▲19 | 5.56 ▼0.12 | 82.08 ▼7.84 | 35.84 ▼9.23 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.04 ▲0.01 | 39.83 ▲4.34 | 35.49 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.76 ▲0.70 | 673.92 ▲21.73 | 57.03 ▲6.08 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.11 ▼0.11 | 97.69 ▼10.51 | 45.84 ▲0.96 |
Send link to friend /wp-admin/options-general.php?page=send-link-to-friend | 895 | 1.99 | 25.10 | 28.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_send-link-to-friend
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/send-link-to-friend/send-link-to-friend.php
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: send link to friend, email to friend, send to friend
send-link-to-friend/send-link-to-friend.php Passed 13 tests
Analyzing the main PHP file in "Send link to friend" version 12.4
137 characters long description:
If user think the content is useful to their friend, they can use this form to send the URL instead of copy and paste the URL into email.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin918 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 97 | 20 | 661 |
PO File | 2 | 83 | 102 | 192 |
JavaScript | 1 | 12 | 3 | 65 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 6.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin