Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.68ms] Passed 4 tests
A check of server-side resources used by Link Verification for Mastodon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 34.57 ▼4.16 |
Dashboard /wp-admin | 3.36 ▲0.06 | 42.40 ▼7.48 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 41.87 ▲0.39 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 78.93 ▼14.64 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 33.85 ▼0.43 |
Mastodon Verification /wp-admin/options-general.php?page=link-verification-for-mastodon | 3.22 | 32.45 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Link Verification for Mastodon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼1.15 | 4.66 ▲2.83 | 43.53 ▲0.79 |
Dashboard /wp-admin | 2,204 ▲16 | 5.91 ▲0.86 | 98.47 ▼20.04 | 37.38 ▼10.33 |
Posts /wp-admin/edit.php | 2,093 ▲22 | 2.05 ▲0.01 | 32.94 ▼4.47 | 33.83 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,523 ▲3 | 23.07 ▼0.11 | 674.22 ▲22.64 | 49.19 ▼14.65 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.28 ▲0.06 | 94.32 ▼7.29 | 42.09 ▼4.96 |
Mastodon Verification /wp-admin/options-general.php?page=link-verification-for-mastodon | 788 | 2.06 | 23.91 | 33.47 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=link-verification-for-mastodon
- > Notice in wp-content/plugins/link-verification-for-mastodon/admin/settings.php+81
Trying to access array offset on value of type bool
SRP 50% from 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
Please fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/link-verification-for-mastodon/admin/settings.php
- > /wp-content/plugins/link-verification-for-mastodon/link-verification-for-mastodon.php
- > /wp-content/plugins/link-verification-for-mastodon/uninstall.php
- > /wp-content/plugins/link-verification-for-mastodon/includes/class-utils.php
- > /wp-content/plugins/link-verification-for-mastodon/includes/verification-tag.php
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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: fediverse, mastodon, social
link-verification-for-mastodon/link-verification-for-mastodon.php Passed 13 tests
The main PHP file in "Link Verification for Mastodon" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
A WordPress plugin to quickly verify a link on your Mastodon profile.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin241 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 77 | 164 | 241 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 6 | |
▷ Static methods | 2 | 33.33% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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
PNG images were not found in this plugin