Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼2.53ms] Passed 4 tests
An overview of server-side resources used by Hreflang Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 52.67 ▲15.50 |
Dashboard /wp-admin | 3.87 ▲0.53 | 46.71 ▼11.74 |
Posts /wp-admin/edit.php | 3.92 ▲0.57 | 48.54 ▲5.97 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 82.26 ▼3.76 |
Media Library /wp-admin/upload.php | 3.73 ▲0.51 | 36.29 ▼0.59 |
Pro Version /wp-admin/admin.php?page=daexthrmal_pro_version | 3.71 | 30.01 |
Connections /wp-admin/admin.php?page=daexthrmal_connections | 3.97 | 69.93 |
Help /wp-admin/admin.php?page=daexthrmal_help | 3.70 | 32.90 |
Options /wp-admin/admin.php?page=daexthrmal_options | 3.71 | 35.51 |
Export to Pro /wp-admin/admin.php?page=daexthrmal_export_to_pro | 3.70 | 32.89 |
Server storage [IO: ▲0.36MB] [DB: ▲0.03MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 43 new files
Database: 1 new table, 46 new options
New tables |
---|
wp_daexthrmal_connection |
New WordPress options |
---|
daexthrmal_default_language_8 |
widget_recent-comments |
daexthrmal_default_script_8 |
daexthrmal_locale |
daexthrmal_auto_delete |
daexthrmal_default_locale_2 |
daexthrmal_default_locale_4 |
daexthrmal_default_language_2 |
daexthrmal_https |
daexthrmal_language |
... |
Browser metrics 75% from 4 tests
Hreflang Manager: an overview of browser usage
Please improve the following
- Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 28,313 on /wp-admin/admin.php?page=daexthrmal_connections)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲61 | 14.05 ▼0.31 | 2.40 ▲0.61 | 54.79 ▲14.03 |
Dashboard /wp-admin | 2,228 ▲51 | 5.59 ▲0.02 | 81.27 ▼5.47 | 33.24 ▼10.21 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.03 ▲0.05 | 36.38 ▲0.28 | 29.52 ▼4.99 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.24 ▲2.15 | 664.65 ▼24.02 | 63.93 ▼8.04 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.21 ▲0.05 | 94.37 ▼2.38 | 38.86 ▼4.40 |
Pro Version /wp-admin/admin.php?page=daexthrmal_pro_version | 925 | 1.99 | 21.43 | 29.56 |
Connections /wp-admin/admin.php?page=daexthrmal_connections | 28,313 | 3.48 | 139.70 | 51.29 |
Help /wp-admin/admin.php?page=daexthrmal_help | 850 | 2.02 | 22.65 | 24.79 |
Options /wp-admin/admin.php?page=daexthrmal_options | 1,103 | 2.25 | 41.03 | 30.51 |
Export to Pro /wp-admin/admin.php?page=daexthrmal_export_to_pro | 834 | 2.00 | 25.49 | 26.20 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hreflang-manager-lite/admin/view/options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hreflang-manager-lite/admin/view/export-to-pro.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hreflang-manager-lite/admin/view/help.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hreflang-manager-lite/admin/view/connections.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hreflang-manager-lite/admin/view/pro-version.php:8
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
hreflang-manager-lite/init.php 92% from 13 tests
"Hreflang Manager" version 1.07's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hreflang-manager-lite.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,250 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 617 | 534 | 2,666 |
CSS | 13 | 460 | 87 | 2,373 |
JavaScript | 5 | 125 | 12 | 1,192 |
Markdown | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 30.75 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 116 | |
▷ Static methods | 6 | 5.17% |
▷ Public methods | 109 | 93.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 6.03% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/inc/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
admin/assets/img/edit.png | 1.28KB | 0.33KB | ▼ 74.12% |
admin/assets/img/clone-hover.png | 15.09KB | 0.12KB | ▼ 99.18% |
admin/assets/img/edit-hover.png | 1.30KB | 0.33KB | ▼ 74.47% |
admin/assets/img/trash-hover.png | 1.13KB | 0.19KB | ▼ 83.13% |