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
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼7.07ms] Passed 4 tests
A check of server-side resources used by WP Slug Post Type Custom Language (Polylang)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.74 ▼10.60 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.94 ▼2.38 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 44.41 ▼2.62 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 83.10 ▼12.68 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 34.67 ▲0.78 |
Slug Language /wp-admin/admin.php?page=new-custom-slug-language | 3.31 | 30.10 |
Slug Language /wp-admin/tools.php?page=custom-slug-language | 3.31 | 31.60 |
Slug Language /wp-admin/admin.php?page=edit-custom-slug-language | 3.31 | 31.75 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
crrq_wp_slug_post_type_custom_language |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Slug Post Type Custom Language (Polylang)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.28 ▼1.09 | 1.85 ▲0.06 | 43.02 ▼2.86 |
Dashboard /wp-admin | 2,213 ▲22 | 4.86 ▼1.07 | 105.61 ▲5.97 | 40.02 ▼1.77 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.03 | 35.75 ▲0.77 | 32.71 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 18.21 ▼4.94 | 627.14 ▼61.03 | 54.01 ▼8.33 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.26 ▲0.07 | 93.75 ▼10.96 | 41.99 ▼4.11 |
Slug Language /wp-admin/admin.php?page=new-custom-slug-language | 747 | 2.05 | 23.39 | 20.96 |
Slug Language /wp-admin/tools.php?page=custom-slug-language | 935 | 2.01 | 23.33 | 25.95 |
Slug Language /wp-admin/admin.php?page=edit-custom-slug-language | 744 | 2.18 | 22.42 | 20.42 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: manager, post custom, post_type, slug, language...
wp-slug-post-type-custom-language/wp-slug-post-type-custom-language.php 92% from 13 tests
The entry point to "WP Slug Post Type Custom Language (Polylang)" version 1.0.7 is a PHP file that has certain tags in its header comment area
Please take the time 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 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected766 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 40 | 39 | 669 |
PO File | 1 | 39 | 115 | 97 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin