Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wpcrypt/wp-crypt.php+61
Non-static method WpCryptCore::init() should not be called statically
Server metrics [RAM: ▼0.35MB] [CPU: ▼303.67ms] Passed 4 tests
Analyzing server-side resources used by WpCrypt
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 57.89 ▲9.16 |
Dashboard /wp-admin | 3.27 ▼0.14 | 22.97 ▼9.86 |
Posts /wp-admin/edit.php | 3.33 ▼0.31 | 25.37 ▼11.20 |
Add New Post /wp-admin/post-new.php | 6.06 ▼0.91 | 80.99 ▼1,185.13 |
Media Library /wp-admin/upload.php | 3.28 ▼0.02 | 20.13 ▼8.49 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
_wpCryptKey |
Browser metrics Passed 4 tests
A check of browser resources used by WpCrypt
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,808 ▲63 | 15.99 ▲0.04 | 5.98 ▲0.09 | 2.46 ▲0.45 |
Dashboard /wp-admin | 2,901 ▲40 | 6.15 ▲0.00 | 117.09 ▼14.25 | 158.28 ▼2.33 |
Posts /wp-admin/edit.php | 2,705 ▲14 | 3.23 ▲0.01 | 62.25 ▲1.57 | 140.25 ▲3.14 |
Add New Post /wp-admin/post-new.php | 1,670 ▲9 | 17.01 ▲0.97 | 393.68 ▼16.87 | 156.44 ▲2.02 |
Media Library /wp-admin/upload.php | 1,711 ▲13 | 5.49 ▼0.03 | 150.83 ▲14.75 | 188.48 ▼0.31 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 1 option
- _wpCryptKey
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wpcrypt/wp-crypt.php:31
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: password, sha1, security, hashes, aes...
wpcrypt/wp-crypt.php 92% from 13 tests
This is the main PHP file of "WpCrypt" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpcrypt.php" instead of "wp-crypt.php")
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 detected246 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 93 | 88 | 246 |
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.25 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.70% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin