Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.61MB] [CPU: ▼16.53ms] Passed 4 tests
Analyzing server-side resources used by Mastodon Auto Share
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.08 ▼5.38 |
Dashboard /wp-admin | 3.39 ▲0.04 | 58.96 ▼9.95 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 55.06 ▲5.45 |
Add New Post /wp-admin/post-new.php | 3.23 ▼2.65 | 41.96 ▼48.37 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.32 ▼2.40 |
Mastodon Auto Share /wp-admin/options-general.php?page=wp-mastodon-share | 3.56 | 37.55 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/wp-mastodon-share/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Mastodon Auto Share
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.33 ▼0.94 | 1.61 ▼0.04 | 41.00 ▲0.36 |
Dashboard /wp-admin | 2,225 ▲18 | 5.83 ▲0.92 | 96.17 ▼16.74 | 40.04 ▼4.63 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▲0.00 | 39.81 ▲2.01 | 35.03 ▼3.81 |
Add New Post /wp-admin/post-new.php | 6,264 ▲4,724 | 26.08 ▲2.97 | 830.26 ▲124.61 | 56.22 ▼10.20 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.24 ▼0.01 | 100.45 ▼5.63 | 47.35 ▲2.41 |
Mastodon Auto Share /wp-admin/options-general.php?page=wp-mastodon-share | 4,784 | 2.25 | 28.19 | 27.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-mastodon-share/instanceList.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mastodon-share/wp-mastodon-share.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-mastodon-share/form.tpl.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2 in wp-mastodon-share/assets to your readme.txt
wp-mastodon-share/wp-mastodon-share.php Passed 13 tests
The main file in "Mastodon Auto Share" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
Share WordPress posts on a mastodon instance.
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
No dangerous file extensions were detected1,191 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 137 | 74 | 556 |
SVG | 5 | 0 | 4 | 191 |
JavaScript | 3 | 47 | 5 | 173 |
CSS | 1 | 36 | 0 | 160 |
PO File | 2 | 36 | 40 | 107 |
Markdown | 1 | 3 | 0 | 4 |
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.20 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 15.38% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin