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.05MB] [CPU: ▼4.02ms] Passed 4 tests
Analyzing server-side resources used by Whook Security
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.31 ▼2.13 |
Dashboard /wp-admin | 3.36 ▲0.05 | 378.88 ▲333.99 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.55 ▼2.43 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.13 ▼11.29 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.38 ▼0.21 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Whook Security
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲120 | 14.55 ▲0.17 | 1.81 ▼0.18 | 35.12 ▼8.88 |
Dashboard /wp-admin | 2,271 ▲79 | 5.89 ▲0.93 | 102.33 ▼8.08 | 78.96 ▲36.38 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.10 ▲0.08 | 36.28 ▲0.17 | 30.52 ▼5.76 |
Add New Post /wp-admin/post-new.php | 1,525 ▼8 | 17.82 ▼5.49 | 667.68 ▼7.71 | 67.42 ▲2.18 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.23 ▲0.06 | 95.36 ▼21.07 | 39.56 ▼10.11 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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_path() in wp-content/plugins/whook-security/whook-security.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #2 is required in whook-security/assets to your readme.txt
whook-security/whook-security.php 69% from 13 tests
The principal PHP file in "Whook Security" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: The domain path should be prefixed with a forward slash character ("/")
- Requires at least: Required version does not match the one declared in readme.txt ("3.4" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin357 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 15 | 238 |
JavaScript | 2 | 10 | 0 | 62 |
CSS | 2 | 0 | 0 | 57 |
HTML | 1 | 1 | 0 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/exc.png | 1.13KB | 0.28KB | ▼ 75.32% |
images/update.png | 1.36KB | 0.55KB | ▼ 59.14% |
images/tooltip.png | 1.05KB | 0.16KB | ▼ 84.84% |
images/check.png | 1.24KB | 0.41KB | ▼ 66.85% |
images/close.png | 1.19KB | 0.31KB | ▼ 73.96% |