Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼8.46ms] Passed 4 tests
An overview of server-side resources used by Share on Mastodon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 51.30 ▼0.71 |
Dashboard /wp-admin | 3.72 ▲0.41 | 49.91 ▲4.03 |
Posts /wp-admin/edit.php | 3.84 ▲0.47 | 48.08 ▼14.64 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 95.54 ▼18.23 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 38.52 ▼0.26 |
Share on Mastodon /wp-admin/options-general.php?page=share-on-mastodon | 3.61 | 33.80 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
share_on_mastodon_settings |
Browser metrics Passed 4 tests
Share on Mastodon: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.67 ▲0.51 | 2.19 ▲0.02 | 45.35 ▼4.61 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.04 | 100.05 ▼6.14 | 41.61 ▼2.07 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.95 ▼0.06 | 37.78 ▼7.51 | 35.73 ▼1.91 |
Add New Post /wp-admin/post-new.php | 1,715 ▲189 | 25.18 ▲2.17 | 618.67 ▼50.83 | 34.72 ▼21.02 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.28 ▲0.12 | 97.10 ▼30.50 | 41.55 ▼6.44 |
Share on Mastodon /wp-admin/options-general.php?page=share-on-mastodon | 871 | 1.97 | 24.21 | 29.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- share_on_mastodon_settings
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: fediverse, share, crosspost, syndication, publicize...
share-on-mastodon/share-on-mastodon.php Passed 13 tests
The main PHP file in "Share on Mastodon" ver. 0.17.2 adds more information about the plugin and also serves as the entry point for this plugin
41 characters long description:
Easily share WordPress posts on Mastodon.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,798 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 353 | 768 | 1,563 |
JavaScript | 2 | 32 | 20 | 207 |
CSS | 1 | 5 | 0 | 28 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 33.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 22 | 33.85% |
▷ Public methods | 50 | 76.92% |
▷ Protected methods | 9 | 13.85% |
▷ Private methods | 6 | 9.23% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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