Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.80ms] Passed 4 tests
Server-side resources used by Share on Pixelfed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 36.40 ▼2.58 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.20 ▼6.55 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.12 ▼1.59 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.53 ▼8.48 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.61 ▲4.65 |
Share on Pixelfed /wp-admin/options-general.php?page=share-on-pixelfed | 3.23 | 30.10 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
share_on_pixelfed_settings |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Share on Pixelfed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.71 ▲0.44 | 1.71 ▼0.01 | 36.78 ▼6.88 |
Dashboard /wp-admin | 2,196 ▲16 | 5.60 ▼0.07 | 86.62 ▼3.95 | 37.74 ▼3.33 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.11 ▲0.11 | 36.84 ▼4.75 | 32.98 ▼7.35 |
Add New Post /wp-admin/post-new.php | 1,705 ▲165 | 22.62 ▼0.58 | 689.32 ▲35.78 | 29.38 ▼21.26 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.14 ▼0.12 | 97.72 ▲0.29 | 43.40 ▲0.01 |
Share on Pixelfed /wp-admin/options-general.php?page=share-on-pixelfed | 865 | 1.99 | 23.59 | 29.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- share_on_pixelfed_settings
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: publicize, fediverse, crosspost, pixelfed, share
share-on-pixelfed/share-on-pixelfed.php Passed 13 tests
The main file in "Share on Pixelfed" v. 0.9.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Easily share WordPress (image) posts on Pixelfed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,757 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 338 | 676 | 1,522 |
JavaScript | 2 | 32 | 20 | 207 |
CSS | 1 | 5 | 0 | 28 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 37.29 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 17 | 28.33% |
▷ Public methods | 44 | 73.33% |
▷ Protected methods | 10 | 16.67% |
▷ Private methods | 6 | 10.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin