Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼130.77ms] Passed 4 tests
A check of server-side resources used by PGP Key Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 46.15 ▲24.02 |
Dashboard /wp-admin | 3.08 ▲0.03 | 74.03 ▲22.23 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 66.76 ▲7.99 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 123.13 ▼552.83 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 51.89 ▼0.47 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
PGP Key Generator: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.96 ▲0.49 | 10.24 ▼0.48 | 59.54 ▲5.16 |
Dashboard /wp-admin | 2,964 ▲33 | 5.93 ▼0.04 | 202.78 ▲25.78 | 141.75 ▲18.11 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.02 | 83.99 ▲5.68 | 110.56 ▲15.92 |
Add New Post /wp-admin/post-new.php | 1,581 ▼0 | 16.47 ▼1.23 | 530.61 ▲37.21 | 135.41 ▼12.03 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.03 | 189.38 ▲0.25 | 142.88 ▲5.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pgp-key-generator/pgp-key-generator.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
pgp-key-generator/pgp-key-generator.php Passed 13 tests
"PGP Key Generator" version 1.13's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Generates PGP Keys. Runs completely in the browser.
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 detected380 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 7 | 13 | 133 |
PHP | 1 | 4 | 9 | 129 |
PO File | 1 | 25 | 27 | 62 |
CSS | 1 | 7 | 0 | 56 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin