Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-includes/functions.php+6691
file_get_contents(): read of 8192 bytes failed with errno=21 Is a directory
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.15ms] Passed 4 tests
A check of server-side resources used by WP Hashed IDs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 44.16 ▲0.60 |
Dashboard /wp-admin | 3.39 ▲0.08 | 53.45 ▼1.28 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 54.03 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 100.62 ▼1.56 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.02 ▲2.16 |
WP Hashed Ids /wp-admin/options-general.php?page=wp_hashed_ids | 3.25 | 35.51 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Hashed IDs
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.32 | 1.67 ▼0.20 | 42.93 ▼1.09 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.04 | 87.12 ▼5.19 | 41.61 ▼1.22 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.02 | 40.44 ▲0.06 | 36.47 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.80 ▲0.75 | 676.63 ▲5.64 | 58.08 ▼5.79 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.20 ▲0.01 | 94.13 ▼7.19 | 46.99 ▲3.50 |
WP Hashed Ids /wp-admin/options-general.php?page=wp_hashed_ids | 833 | 2.03 | 23.62 | 29.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-includes/functions.php+6691
file_get_contents(): read of 8192 bytes failed with errno=21 Is a directory
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_hashed_ids
- > Notice in wp-content/plugins/wp-hashed-ids/settings.php+54
Trying to access array offset on value of type bool
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
Please take a closer look at the following
- 3× 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/wp-hashed-ids/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-hashed-ids/settings.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Hashids\\HashGenerator' not found in wp-content/plugins/wp-hashed-ids/hashids.php/lib/Hashids/Hashids.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: url shortening, permalink tag, encryption, permalinks
wp-hashed-ids/wp-hashed-ids.php 92% from 13 tests
The entry point to "WP Hashed IDs" version 2.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 325 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected517 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 106 | 62 | 383 |
Markdown | 1 | 30 | 0 | 71 |
JSON | 1 | 0 | 0 | 35 |
XML | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 5.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin