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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲3.09ms] Passed 4 tests
This is a short check of server-side resources used by WP PGP Encrypted Emails
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 41.33 ▼12.89 |
Dashboard /wp-admin | 4.10 ▲0.80 | 58.97 ▲5.83 |
Posts /wp-admin/edit.php | 4.10 ▲0.75 | 60.13 ▲8.99 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.68 | 116.13 ▲14.16 |
Media Library /wp-admin/upload.php | 4.10 ▲0.87 | 46.24 ▲10.42 |
Email Encryption /wp-admin/options-general.php?page=wp-pgp-encrypted-emails | 4.10 | 34.29 |
Server storage [IO: ▲1.93MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 220 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP PGP Encrypted Emails
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲70 | 13.26 ▼1.33 | 5.13 ▲3.00 | 46.99 ▼15.43 |
Dashboard /wp-admin | 2,209 ▲21 | 4.83 ▼1.06 | 105.03 ▼4.98 | 40.94 ▼6.10 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.04 ▲0.04 | 48.63 ▲7.20 | 44.18 ▲5.15 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.20 ▼0.21 | 692.80 ▼15.70 | 62.15 ▲6.97 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.18 ▼0.04 | 110.80 ▲2.05 | 46.54 ▼2.62 |
Email Encryption /wp-admin/options-general.php?page=wp-pgp-encrypted-emails | 881 | 2.06 | 24.49 | 32.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp-pgp-encrypted-emails
- > Notice in wp-content/plugins/wp-pgp-encrypted-emails/wp-pgp-encrypted-emails.php+1053
Trying to access array offset on value of type bool
SRP 50% 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
Please take a closer look at the following
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\RSA' not found in wp-content/plugins/wp-pgp-encrypted-emails/vendor/singpolyma/openpgp-php/lib/openpgp_crypt_rsa.php:13
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\et\\SSH2' not found in wp-content/plugins/wp-pgp-encrypted-emails/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:47
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\RSA' not found in wp-content/plugins/wp-pgp-encrypted-emails/vendor/singpolyma/openpgp-php/lib/openpgp_crypt_rsa.php:13
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-pgp-encrypted-emails/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php:64
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-pgp-encrypted-emails/vendor/singpolyma/openpgp-php/tests/suite.php:6
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\RSA' not found in wp-content/plugins/wp-pgp-encrypted-emails/vendor/singpolyma/openpgp-php/lib/openpgp_crypt_rsa.php:13
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\RSA' not found in wp-content/plugins/wp-pgp-encrypted-emails/vendor/singpolyma/openpgp-php/lib/openpgp_crypt_rsa.php:13
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\RSA' not found in wp-content/plugins/wp-pgp-encrypted-emails/vendor/singpolyma/openpgp-php/lib/openpgp_crypt_rsa.php:13
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-pgp-encrypted-emails/vendor/phpseclib/phpseclib/phpseclib/Crypt/DES.php:52
- > PHP Fatal error
Uncaught Error: Class 'Plugin_UnitTestCase' not found in wp-content/plugins/wp-pgp-encrypted-emails/tests/test-wp-openpgp.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
8 plugin tags: privacy, encryption, smime, email, security...
wp-pgp-encrypted-emails/wp-pgp-encrypted-emails.php 85% from 13 tests
The primary PHP file in "WP PGP Encrypted Emails" version 0.8.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "([0-9.]+)$/', $line, $m );")
- Description: The description should be shorter than 140 characters (currently 494 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected26,352 lines of code in 89 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 4,449 | 13,077 | 25,359 |
JSON | 5 | 0 | 0 | 423 |
Markdown | 6 | 123 | 0 | 241 |
YAML | 5 | 4 | 1 | 148 |
Bourne Shell | 1 | 20 | 6 | 94 |
XML | 3 | 6 | 0 | 54 |
dhall | 1 | 0 | 0 | 30 |
CSS | 1 | 0 | 3 | 3 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 44.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 633.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 94 | |
▷ Abstract classes | 1 | 1.06% |
▷ Concrete classes | 93 | 98.94% |
▷ Final classes | 2 | 2.15% |
Methods | 1,053 | |
▷ Static methods | 126 | 11.97% |
▷ Public methods | 1,040 | 98.77% |
▷ Protected methods | 2 | 0.19% |
▷ Private methods | 11 | 1.04% |
Functions | 18 | |
▷ Named functions | 4 | 22.22% |
▷ Anonymous functions | 14 | 77.78% |
Constants | 193 | |
▷ Global constants | 23 | 11.92% |
▷ Class constants | 170 | 88.08% |
▷ Public constants | 170 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin