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
Installer ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼7.93ms] Passed 4 tests
Analyzing server-side resources used by wp2pgpmail
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 43.41 ▲1.23 |
Dashboard /wp-admin | 3.78 ▲0.44 | 50.95 ▼15.83 |
Posts /wp-admin/edit.php | 3.83 ▲0.48 | 55.04 ▼0.02 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 96.30 ▼17.09 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 44.83 ▲1.42 |
Server storage [IO: ▲9.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 126 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for wp2pgpmail
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲148 | 14.25 ▼0.42 | 46.68 ▲44.74 | 42.37 ▲2.18 |
Dashboard /wp-admin | 2,210 ▲30 | 5.70 ▼0.01 | 84.96 ▼6.44 | 78.85 ▲34.09 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.04 ▲0.03 | 36.71 ▲0.81 | 32.24 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,714 ▲188 | 24.77 ▲7.25 | 619.81 ▼37.08 | 35.67 ▼17.43 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.19 ▲0.03 | 102.84 ▼7.41 | 82.14 ▲35.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/wp2pgpmail/phpcaptcha/securimage_show.php
- > /wp-content/plugins/wp2pgpmail/phpcaptcha/example_form.php
- > /wp-content/plugins/wp2pgpmail/phpcaptcha/securimage_play.php
- > /wp-content/plugins/wp2pgpmail/phpcaptcha/example_form.ajax.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp2pgpmail/wp2pgpmail.php:47
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wp2pgpmail/wp2pgpmail.php Passed 13 tests
The main file in "wp2pgpmail" v. 1.28 serves as a complement to information provided in readme.txt and as the entry point to the plugin
43 characters long description:
A simple PGP Mail Form Plugin for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected6,259 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 1,035 | 1,989 | 3,673 |
JavaScript | 10 | 256 | 207 | 1,561 |
PO File | 7 | 274 | 301 | 727 |
Markdown | 1 | 69 | 0 | 175 |
HTML | 2 | 26 | 29 | 82 |
CSS | 2 | 1 | 0 | 41 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 109.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 396.00 |
Average method complexity | 5.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 132 | |
▷ Static methods | 9 | 6.82% |
▷ Public methods | 75 | 56.82% |
▷ Protected methods | 57 | 43.18% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 46 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 46 | 100.00% |
▷ Public constants | 46 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
phpcaptcha/images/refresh.png | 4.72KB | 2.44KB | ▼ 48.36% |
phpcaptcha/backgrounds/bg6.png | 41.88KB | 29.04KB | ▼ 30.64% |
phpcaptcha/images/loading.png | 1.11KB | 1.10KB | 0.44% |
images/reload.png | 0.34KB | 0.31KB | ▼ 9.20% |
css/sprite.png | 11.62KB | 4.15KB | ▼ 64.30% |