Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.51ms] Passed 4 tests
Server-side resources used by Unguessable Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.67 ▲0.81 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.92 ▼1.86 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 51.24 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 96.43 ▲5.05 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.94 ▼4.66 |
Unguessable Images /wp-admin/options-general.php?page=unguessable_settings | 3.19 | 28.31 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
unguessable_images_settings |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Unguessable Images
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.35 ▼0.40 | 1.96 ▲0.04 | 38.89 ▼4.67 |
Dashboard /wp-admin | 2,196 ▲16 | 5.57 ▼0.07 | 88.38 ▼0.72 | 39.57 ▲4.21 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.02 | 41.11 ▲2.35 | 36.42 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,534 ▼6 | 23.28 ▲0.41 | 674.20 ▲49.54 | 63.51 ▼1.84 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.25 ▲0.05 | 113.59 ▲10.63 | 49.27 ▲1.19 |
Unguessable Images /wp-admin/options-general.php?page=unguessable_settings | 851 | 2.01 | 23.12 | 24.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- unguessable_images_settings
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=unguessable_settings
- > Notice in wp-content/plugins/unguessable-images/options_class.php+163
Undefined index: use_original_filename
- > GET request to /wp-admin/options-general.php?page=unguessable_settings
- > Notice in wp-content/plugins/unguessable-images/options_class.php+177
Undefined index: max_num_chars_from_original_filename
- > GET request to /wp-admin/options-general.php?page=unguessable_settings
- > Notice in wp-content/plugins/unguessable-images/options_class.php+177
Undefined index: prefix
- > GET request to /wp-admin/options-general.php?page=unguessable_settings
- > Notice in wp-content/plugins/unguessable-images/options_class.php+177
Undefined index: suffix
- > GET request to /wp-admin/options-general.php?page=unguessable_settings
- > Notice in wp-content/plugins/unguessable-images/options_class.php+177
Undefined index: connector_string
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/unguessable-images/unguessable_images.php:142
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
- Requires at least: The plugin version is formatted incorrectly
unguessable-images/unguessable_images.php 92% from 13 tests
Analyzing the main PHP file in "Unguessable Images" version 1.0.0
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("unguessable-images.php" instead of "unguessable_images.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected229 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 95 | 14 | 229 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin