Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.70ms] Passed 4 tests
A check of server-side resources used by WP to diaspora
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.56 ▲2.68 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.33 ▼1.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.28 ▲0.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.28 ▼15.27 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.04 ▲0.79 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 163 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP to diaspora
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.80 ▲0.42 | 1.84 ▲0.12 | 43.31 ▲4.95 |
Dashboard /wp-admin | 2,206 ▲17 | 5.05 ▲0.14 | 114.40 ▲11.36 | 42.11 ▲0.07 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▼0.02 | 35.81 ▲2.16 | 32.41 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,533 ▲10 | 23.19 ▼0.23 | 663.47 ▲28.49 | 51.56 ▼4.54 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.05 | 100.52 ▲2.11 | 44.69 ▼0.50 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 75× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'WP2D\\Dependencies\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-to-diaspora/lib/Dependencies/GuzzleHttp/Psr7/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'WP2D\\Dependencies\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-to-diaspora/lib/Dependencies/GuzzleHttp/Psr7/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Interface 'WP2D\\Dependencies\\League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-to-diaspora/lib/Dependencies/League/HTMLToMarkdown/Converter/TableConverter.php:13
- > PHP Fatal error
Uncaught Error: Interface 'WP2D\\Dependencies\\League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-to-diaspora/lib/Dependencies/League/HTMLToMarkdown/Converter/CommentConverter.php:11
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16. in wp-content/plugins/wp-to-diaspora/vendor/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Interface 'WP2D\\Dependencies\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wp-to-diaspora/lib/Dependencies/GuzzleHttp/Promise/Coroutine.php:46
- > PHP Fatal error
Uncaught Error: Class 'WP2D\\Dependencies\\GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/wp-to-diaspora/lib/Dependencies/GuzzleHttp/Promise/CancellationException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'WP2D\\Dependencies\\League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-to-diaspora/lib/Dependencies/League/HTMLToMarkdown/Converter/DivConverter.php:11
- > PHP Fatal error
Uncaught Error: Interface 'WP2D\\Dependencies\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-to-diaspora/lib/Dependencies/GuzzleHttp/Psr7/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP2D\\Dependencies\\GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/wp-to-diaspora/lib/Dependencies/GuzzleHttp/Exception/BadResponseException.php:11
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: share, post, social, integration, diaspora...
wp-to-diaspora/wp-to-diaspora.php Passed 13 tests
This is the main PHP file of "WP to diaspora" version 4.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
49 characters long description:
Automatically shares WordPress posts on diaspora*
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
Success! There were no dangerous files found in this plugin13,212 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 150 | 2,915 | 7,028 | 12,849 |
JavaScript | 3 | 38 | 29 | 221 |
CSS | 3 | 33 | 14 | 137 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 31 | |
Traits | 3 | |
Classes | 106 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 106 | 100.00% |
▷ Final classes | 37 | 34.91% |
Methods | 987 | |
▷ Static methods | 159 | 16.11% |
▷ Public methods | 815 | 82.57% |
▷ Protected methods | 7 | 0.71% |
▷ Private methods | 165 | 16.72% |
Functions | 103 | |
▷ Named functions | 10 | 9.71% |
▷ Anonymous functions | 93 | 90.29% |
Constants | 80 | |
▷ Global constants | 13 | 16.25% |
▷ Class constants | 67 | 83.75% |
▷ Public constants | 56 | 83.58% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |