Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.58ms] Passed 4 tests
A check of server-side resources used by Civic SIP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.62 ▲0.03 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.13 ▼15.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.09 ▼6.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.87 ▼17.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.15 ▲3.26 |
Server storage [IO: ▲4.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 800 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
civic-sip-settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Civic SIP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.43 ▼0.16 | 1.86 ▲0.18 | 43.03 ▼3.55 |
Dashboard /wp-admin | 2,195 ▲25 | 5.59 ▼0.08 | 91.47 ▼13.35 | 40.02 ▼2.60 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.96 ▼0.04 | 33.42 ▼4.26 | 36.54 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.53 ▲0.11 | 649.22 ▲33.40 | 50.29 ▲0.25 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▼0.01 | 98.39 ▼6.01 | 42.55 ▼4.62 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/civic-sip/includes/vendor/mdanter/ecc/tests/bootstrap.php
- > /wp-content/plugins/civic-sip/admin/partials/civic-sip-admin-display.php
- 457× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Uuid\\Uuid' not found in wp-content/plugins/civic-sip/includes/vendor/ramsey/uuid/src/DegradedUuid.php:25
- > PHP Fatal error
Uncaught UnexpectedValueException: creating archive "wp-content/plugins/civic-sip/includes/vendor/paragonie/random_compat/dist/random_compat.phar" disabled by the php.ini setting phar.readonly in /var/www/wordpress/wp-content/plugins/civic-sip/includes/vendor/paragonie/random_compat/other/build_phar.php:12
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\Universal\\Set' not found in wp-content/plugins/civic-sip/includes/vendor/fgrosse/phpasn1/lib/X509/CertificateExtensions.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/civic-sip/includes/vendor/ralouphie/getallheaders/tests/GetAllHeadersTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\AbstractString' not found in wp-content/plugins/civic-sip/includes/vendor/fgrosse/phpasn1/lib/ASN1/Universal/CharacterString.php:16
- > PHP Fatal error
Uncaught Error: Class 'FG\\Test\\ASN1TestCase' not found in wp-content/plugins/civic-sip/includes/vendor/fgrosse/phpasn1/tests/X509/CSR/AttributesTest.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Jose\\Algorithm\\ContentEncryptionAlgorithmInterface' not found in wp-content/plugins/civic-sip/includes/vendor/spomky-labs/jose/src/Algorithm/ContentEncryption/AESGCM.php:17
- > PHP Warning
require(wp-content/plugins/civic-sip/includes/vendor/mdanter/ecc/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/civic-sip/includes/vendor/mdanter/ecc/examples/creating_signature.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Jose\\Algorithm\\Signature\\HMAC' not found in wp-content/plugins/civic-sip/includes/vendor/spomky-labs/jose/src/Algorithm/Signature/HS256.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/civic-sip/includes/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: authorization, login, blockchain, civic, log in...
civic-sip/civic-sip.php 92% from 13 tests
The main PHP file in "Civic SIP" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Git Repository: An alternative Git repository was detected
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
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/civic-sip/includes/vendor/spomky-labs/jose/tests/Unit/Certificates/Chain/google.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 627 | 9,751 | 22,664 | 44,253 |
YAML | 14 | 93 | 115 | 9,028 |
Markdown | 35 | 1,803 | 0 | 5,430 |
JSON | 21 | 1 | 0 | 1,760 |
CSS | 1 | 54 | 0 | 482 |
JavaScript | 1 | 10 | 7 | 80 |
SVG | 2 | 0 | 0 | 76 |
XML | 3 | 4 | 0 | 63 |
make | 2 | 17 | 0 | 48 |
Bourne Shell | 3 | 3 | 0 | 30 |
Dockerfile | 1 | 1 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 101 | |
Interfaces | 78 | |
Traits | 12 | |
Classes | 496 | |
▷ Abstract classes | 24 | 4.84% |
▷ Concrete classes | 472 | 95.16% |
▷ Final classes | 85 | 18.01% |
Methods | 3,629 | |
▷ Static methods | 474 | 13.06% |
▷ Public methods | 3,028 | 83.44% |
▷ Protected methods | 245 | 6.75% |
▷ Private methods | 356 | 9.81% |
Functions | 267 | |
▷ Named functions | 132 | 49.44% |
▷ Anonymous functions | 135 | 50.56% |
Constants | 273 | |
▷ Global constants | 13 | 4.76% |
▷ Class constants | 260 | 95.24% |
▷ Public constants | 260 | 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
4 PNG files occupy 0.42MB with 0.21MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/guzzlehttp/guzzle/docs/_static/logo.png | 241.87KB | 69.68KB | ▼ 71.19% |
screenshot-1.png | 172.60KB | 54.39KB | ▼ 68.49% |
includes/vendor/guzzlehttp/guzzle/docs/_static/guzzle-icon.png | 0.78KB | 0.94KB | 0.00% |
screenshot-2.png | 17.71KB | 7.32KB | ▼ 58.64% |