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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.48ms] Passed 4 tests
A check of server-side resources used by Nostrtium
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 46.70 ▼4.58 |
Dashboard /wp-admin | 3.31 ▲0.00 | 65.00 ▲6.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 67.16 ▲10.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 125.12 ▼15.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 43.75 ▲7.41 |
Server storage [IO: ▲7.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 535 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Nostrtium: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.29 ▲0.08 | 2.16 ▲0.40 | 51.84 ▲2.74 |
Dashboard /wp-admin | 2,206 ▲14 | 4.83 ▼0.03 | 124.43 ▲18.18 | 53.84 ▲9.42 |
Posts /wp-admin/edit.php | 2,089 ▲14 | 2.02 ▲0.03 | 48.33 ▲8.95 | 43.42 ▲5.42 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 21.06 ▼2.12 | 731.64 ▲76.15 | 66.60 ▲15.16 |
Media Library /wp-admin/upload.php | 1,385 ▲11 | 4.13 ▲0.02 | 117.21 ▲5.82 | 53.76 ▲11.03 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/nostrtium/vendor/paragonie/halite/doc/Examples/01-passwords.php
- 344× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/nostrtium/vendor/paragonie/halite/src/KeyFactory.php on line 827
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\ASNObject' not found in wp-content/plugins/nostrtium/vendor/fgrosse/phpasn1/lib/ASN1/AbstractString.php:15
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\AbstractString' not found in wp-content/plugins/nostrtium/vendor/fgrosse/phpasn1/lib/ASN1/Universal/PrintableString.php:16
- > PHP Notice
Constant SODIUM_CRYPTO_STREAM_NONCEBYTES already defined in wp-content/plugins/nostrtium/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 90
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_HChaCha20' not found in wp-content/plugins/nostrtium/vendor/paragonie/sodium_compat/src/Core/XChaCha20.php:10
- > PHP Warning
require_once(wp-content/plugins/nostrtium/vendor/paragonie/halite/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/nostrtium/vendor/paragonie/halite/test/random_audit.php on line 5
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/nostrtium/vendor/textalk/websocket/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/nostrtium/vendor/textalk/websocket/examples/random_server.php on line 16
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/nostrtium/vendor/psr/log/src/AbstractLogger.php:12
- > PHP Notice
Constant SODIUM_CRYPTO_PWHASH_ALG_ARGON2I13 already defined in wp-content/plugins/nostrtium/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 55
- > PHP Fatal error
Uncaught Error: Interface 'swentel\ostr\\RelayInterface' not found in wp-content/plugins/nostrtium/vendor/swentel/nostr-php/src/Relay/Relay.php:10
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: social media, nostr
nostrtium/nostrtium.php 92% from 13 tests
This is the main PHP file of "Nostrtium" version 0.7.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin51,884 lines of code in 494 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 405 | 7,138 | 22,956 | 47,844 |
Markdown | 62 | 916 | 0 | 2,171 |
JSON | 3 | 0 | 0 | 1,198 |
JavaScript | 4 | 16 | 16 | 222 |
YAML | 4 | 12 | 3 | 114 |
make | 5 | 52 | 22 | 108 |
CSS | 4 | 8 | 10 | 77 |
XML | 4 | 1 | 0 | 76 |
Bourne Shell | 3 | 7 | 6 | 74 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 386.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 71 | |
Interfaces | 36 | |
Traits | 3 | |
Classes | 330 | |
▷ Abstract classes | 41 | 12.42% |
▷ Concrete classes | 289 | 87.58% |
▷ Final classes | 33 | 11.42% |
Methods | 2,456 | |
▷ Static methods | 837 | 34.08% |
▷ Public methods | 2,219 | 90.35% |
▷ Protected methods | 148 | 6.03% |
▷ Private methods | 89 | 3.62% |
Functions | 334 | |
▷ Named functions | 309 | 92.51% |
▷ Anonymous functions | 25 | 7.49% |
Constants | 626 | |
▷ Global constants | 17 | 2.72% |
▷ Class constants | 609 | 97.28% |
▷ Public constants | 607 | 99.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/paragonie/halite/test/unit/tmp/paragon_avatar.png | 138.54KB | 84.45KB | ▼ 39.05% |