Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.82ms] Passed 4 tests
A check of server-side resources used by Mastodon Autopost
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.01 ▲1.60 |
Dashboard /wp-admin | 3.42 ▲0.11 | 50.58 ▼3.31 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 57.02 ▲9.42 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 90.06 ▼11.23 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 40.64 ▲5.66 |
Mastodon Autopost /wp-admin/options-general.php?page=autopost-to-mastodon | 3.97 | 44.27 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
autopostToMastodon-notice |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Mastodon Autopost
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 13.24 ▼1.13 | 5.94 ▲4.14 | 41.75 ▼4.03 |
Dashboard /wp-admin | 2,226 ▲44 | 4.88 ▲0.04 | 110.17 ▲2.41 | 42.14 ▼1.45 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.07 ▲0.07 | 42.04 ▲2.91 | 36.19 ▲0.06 |
Add New Post /wp-admin/post-new.php | 6,474 ▲4,960 | 20.06 ▲2.46 | 890.89 ▲229.34 | 65.92 ▼1.04 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.22 ▼0.02 | 95.20 ▼8.79 | 42.27 ▼6.22 |
Mastodon Autopost /wp-admin/options-general.php?page=autopost-to-mastodon | 9,427 | 2.26 | 32.16 | 29.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/autopost-to-mastodon/instanceList.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/autopost-to-mastodon/form.tpl.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autopost-to-mastodon/mastodon_autopost.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: social media, mastodon, statusnet, auto post, gnu social...
autopost-to-mastodon/mastodon_autopost.php 92% from 13 tests
The main PHP file in "Mastodon Autopost" ver. 3.7 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("autopost-to-mastodon.php" instead of "mastodon_autopost.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,313 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 170 | 100 | 780 |
SVG | 5 | 0 | 4 | 191 |
CSS | 1 | 36 | 0 | 160 |
PO File | 2 | 74 | 0 | 150 |
JavaScript | 1 | 5 | 4 | 32 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/paypal.png | 12.65KB | 5.27KB | ▼ 58.33% |
img/patron.png | 3.01KB | 1.62KB | ▼ 46.14% |