Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.46ms] Passed 4 tests
Analyzing server-side resources used by Virtual Public Square
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.23 ▼8.84 |
Dashboard /wp-admin | 3.33 ▲0.02 | 52.97 ▲3.96 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 51.31 ▼5.00 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.55 ▲0.04 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.26 ▲6.51 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 224 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Virtual Public Square
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.24 ▼1.34 | 1.69 ▼0.15 | 42.56 ▲4.91 |
Dashboard /wp-admin | 2,208 ▲17 | 5.85 ▲0.75 | 106.62 ▼7.63 | 39.36 ▼0.94 |
Posts /wp-admin/edit.php | 2,094 ▲2 | 2.02 ▼0.02 | 35.81 ▼6.90 | 31.85 ▼5.89 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.30 ▲0.15 | 662.32 ▼36.81 | 58.39 ▲1.92 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.31 ▲0.10 | 102.27 ▼0.18 | 44.28 ▼2.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 90× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\ASNObject' not found in wp-content/plugins/virtual-public-square/lib/fgrosse/phpasn1/lib/ASN1/Construct.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Jose\\Component\\Signature\\Serializer\\JWSSerializer' not found in wp-content/plugins/virtual-public-square/lib/web-token/jwt-signature/Serializer/Serializer.php:18
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\ASNObject' not found in wp-content/plugins/virtual-public-square/lib/fgrosse/phpasn1/lib/ASN1/ExplicitlyTaggedObject.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Jose\\Component\\Core\\Algorithm' not found in wp-content/plugins/virtual-public-square/lib/web-token/jwt-key-mgmt/Tests/FooAlgorithm.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/virtual-public-square/lib/web-token/jwt-key-mgmt/Tests/JWKFactoryTest.php:26
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\ASNObject' not found in wp-content/plugins/virtual-public-square/lib/fgrosse/phpasn1/lib/ASN1/AbstractString.php:15
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\Universal\\OctetString' not found in wp-content/plugins/virtual-public-square/lib/fgrosse/phpasn1/lib/ASN1/Universal/BitString.php:18
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\AbstractString' not found in wp-content/plugins/virtual-public-square/lib/fgrosse/phpasn1/lib/ASN1/Universal/GraphicString.php:16
- > PHP Fatal error
Uncaught Error: Class 'Jose\\Component\\Signature\\Serializer\\Serializer' not found in wp-content/plugins/virtual-public-square/lib/web-token/jwt-signature/Serializer/JSONGeneralSerializer.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Jose\\Component\\Checker\\TokenTypeSupport' not found in wp-content/plugins/virtual-public-square/lib/web-token/jwt-signature/JWSTokenSupport.php:20
- > PHP Fatal error
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 errors were detected
Optimizations
Plugin configuration 93% from 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
3 plugin tags: identity, didpsqr, did
virtual-public-square/psqr.php 85% from 13 tests
The main file in "Virtual Public Square" v. 0.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("virtual-public-square.php" instead of "psqr.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/virtual-public-square/lib/web-token/jwt-key-mgmt/Tests/Chain/google.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 143 | 2,121 | 3,450 | 9,333 |
JSON | 7 | 1 | 0 | 960 |
Markdown | 8 | 88 | 0 | 201 |
CSS | 2 | 20 | 7 | 110 |
JavaScript | 2 | 78 | 343 | 106 |
YAML | 3 | 2 | 0 | 36 |
XML | 1 | 1 | 0 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 8 | |
Traits | 0 | |
Classes | 129 | |
▷ Abstract classes | 8 | 6.20% |
▷ Concrete classes | 121 | 93.80% |
▷ Final classes | 25 | 20.66% |
Methods | 763 | |
▷ Static methods | 159 | 20.84% |
▷ Public methods | 606 | 79.42% |
▷ Protected methods | 71 | 9.31% |
▷ Private methods | 86 | 11.27% |
Functions | 9 | |
▷ Named functions | 2 | 22.22% |
▷ Anonymous functions | 7 | 77.78% |
Constants | 99 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 99 | 100.00% |
▷ Public constants | 92 | 92.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin