Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼6.27MB] [CPU: ▼1,120,059.99ms] Passed 4 tests
An overview of server-side resources used by Share on Diaspora
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 42.27 ▲1.90 |
Dashboard /wp-admin | 3.29 ▼22.35 | 36.82 ▼4,480,137.99 |
Posts /wp-admin/edit.php | 3.30 ▼0.11 | 29.70 ▼24.31 |
Add New Post /wp-admin/post-new.php | 3.30 ▼2.64 | 31.85 ▼68.88 |
Media Library /wp-admin/upload.php | 3.30 ▲0.02 | 29.87 ▼8.76 |
Share on D* /wp-admin/options-general.php?page=share_on_diaspora_options_page | 3.30 | 30.40 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
share-on-diaspora-settings |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Share on Diaspora: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.24 ▼0.11 | 1.74 ▲0.06 | 45.99 ▼2.60 |
Dashboard /wp-admin | 2,200 ▲23 | 5.52 ▼0.03 | 89.55 ▼18.10 | 38.31 ▼6.89 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.99 ▲0.01 | 38.79 ▲2.03 | 34.45 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.09 ▲0.05 | 633.95 ▼21.15 | 51.40 ▲1.44 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.20 ▼0.01 | 104.72 ▲5.95 | 46.54 ▲1.52 |
Share on D* /wp-admin/options-general.php?page=share_on_diaspora_options_page | 909 | 2.01 | 24.89 | 33.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/share-on-diaspora/admin.php+150
Undefined index: podlist
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- 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
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > Notice in wp-content/plugins/share-on-diaspora/admin.php+150
Undefined index: podlist
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > Warning in wp-content/plugins/share-on-diaspora/admin.php+162
Invalid argument supplied for foreach()
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > Notice in wp-content/plugins/share-on-diaspora/share-on-diaspora-css.php+11
Undefined index: button_size
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > Notice in wp-content/plugins/share-on-diaspora/admin.php+196
Undefined index: button_text
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > Notice in wp-content/plugins/share-on-diaspora/share-on-diaspora-css.php+6
Undefined index: button_color
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > Notice in wp-content/plugins/share-on-diaspora/share-on-diaspora-css.php+7
Undefined index: button_background
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > Notice in wp-content/plugins/share-on-diaspora/share-on-diaspora-css.php+8
Undefined index: button_color_hover
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > Notice in wp-content/plugins/share-on-diaspora/share-on-diaspora-css.php+9
Undefined index: button_background_hover
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > Notice in wp-content/plugins/share-on-diaspora/share-on-diaspora-css.php+19
Undefined index: button_rounded
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=share_on_diaspora_options_page
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/share-on-diaspora/share-on-diaspora-css.php
- > /wp-content/plugins/share-on-diaspora/new_window.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'ShareOnDiaspora' not found in wp-content/plugins/share-on-diaspora/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/share-on-diaspora/share-on-diaspora.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== share-on-diaspora ===
)
share-on-diaspora/share-on-diaspora.php Passed 13 tests
The main PHP script in "Share on Diaspora" version 0.7.9 is automatically included on every request by WordPress
68 characters long description:
This plugin adds a "Share on D*" button at the bottom of your posts.
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 plugin996 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 92 | 105 | 980 |
JavaScript | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 52.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 42 | |
▷ Static methods | 7 | 16.67% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/asterisk-30.png | 1.63KB | 1.43KB | ▼ 12.68% |
images/asterisk-45.png | 2.43KB | 2.25KB | ▼ 7.44% |
images/asterisk-25.png | 1.28KB | 1.10KB | ▼ 14.19% |
images/asterisk-20.png | 0.94KB | 0.85KB | ▼ 9.44% |