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 had errors
- > Warning in wp-content/plugins/wp-what-links-here/wp-what-links-here.php+452
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.76MB] [CPU: ▼186.90ms] Passed 4 tests
Analyzing server-side resources used by WP What Links Here
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.87 ▼0.85 | 5.35 ▼18.80 |
Dashboard /wp-admin | 1.89 ▼1.16 | 9.12 ▼27.11 |
Posts /wp-admin/edit.php | 1.89 ▼1.21 | 6.21 ▼38.73 |
Add New Post /wp-admin/post-new.php | 1.89 ▼3.54 | 6.23 ▼654.45 |
Media Library /wp-admin/upload.php | 1.89 ▼1.11 | 5.95 ▼27.29 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 2 new options
New WordPress options |
---|
wp_wlh_db_version |
wp_wlh_install |
Browser metrics Passed 4 tests
WP What Links Here: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.81 ▲0.14 | 11.12 ▲2.05 | 52.32 ▲1.48 |
Dashboard /wp-admin | 2,973 ▲42 | 5.96 ▼0.19 | 153.50 ▼0.53 | 116.88 ▼6.88 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 71.80 ▼0.74 | 97.20 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,500 ▼183 | 18.43 ▼0.12 | 368.33 ▼27.65 | 115.65 ▼4.85 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.06 ▲0.02 | 167.05 ▲2.53 | 122.01 ▼2.66 |
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
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-what-links-here/wp-what-links-here.php+452
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
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
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-what-links-here/wp-what-links-here.php on line 497
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-what-links-here/wp-what-links-here.php on line 465
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-what-links-here/wp-what-links-here.php on line 452
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: connections, links, posts, wiki, relations...
wp-what-links-here/wp-what-links-here.php 92% from 13 tests
The main file in "WP What Links Here" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
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
Good job! No executable or dangerous file extensions detected343 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 165 | 339 | 343 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 60.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 26 | |
▷ Static methods | 3 | 11.54% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 1 | 3.85% |
▷ Private methods | 4 | 15.38% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected