Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.89MB] [CPU: ▲1.35ms] Passed 4 tests
Analyzing server-side resources used by Sublanguage
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 51.43 ▲4.25 |
Dashboard /wp-admin | 4.23 ▲0.93 | 59.01 ▲3.52 |
Posts /wp-admin/edit.php | 4.35 ▲1.00 | 57.68 ▲5.86 |
Add New Post /wp-admin/post-new.php | 6.86 ▲0.97 | 93.23 ▼8.25 |
Media Library /wp-admin/upload.php | 4.14 ▲0.92 | 49.88 ▲12.74 |
Language Options /wp-admin/edit.php?page=post_language_option | 4.15 | 39.45 |
Language Options /wp-admin/edit.php?post_type=page&page=page_language_option | 4.15 | 38.09 |
Add language /wp-admin/post-new.php?post_type=language | 4.60 | 60.16 |
Taxonomy Language Options /wp-admin/admin.php?page=category_language_option | 4.16 | 48.17 |
Sublanguage /wp-admin/options-general.php?page=sublanguage-settings | 4.16 | 39.17 |
Languages /wp-admin/edit.php?post_type=language | 4.24 | 46.38 |
Server storage [IO: ▲0.31MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_sublanguage_widget |
widget_recent-comments |
sublanguage |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Sublanguage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.27 ▼0.08 | 1.89 ▼0.29 | 43.89 ▲0.98 |
Dashboard /wp-admin | 2,239 ▲62 | 5.54 ▼0.12 | 96.83 ▲0.75 | 45.35 ▲2.19 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 1.99 ▲0.01 | 34.80 ▼2.78 | 37.51 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,579 ▲53 | 23.28 ▲0.18 | 716.05 ▲43.43 | 38.39 ▼7.66 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.24 ▲0.05 | 115.50 ▲0.32 | 47.51 ▼3.52 |
Language Options /wp-admin/edit.php?page=post_language_option | 901 | 2.01 | 25.15 | 27.71 |
Language Options /wp-admin/edit.php?post_type=page&page=page_language_option | 901 | 2.04 | 27.81 | 29.51 |
Add language /wp-admin/post-new.php?post_type=language | 2,139 | 2.35 | 54.21 | 122.15 |
Taxonomy Language Options /wp-admin/admin.php?page=category_language_option | 799 | 2.00 | 25.68 | 23.20 |
Sublanguage /wp-admin/options-general.php?page=sublanguage-settings | 1,143 | 2.00 | 22.77 | 30.02 |
Languages /wp-admin/edit.php?post_type=language | 1,649 | 1.98 | 40.90 | 33.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- sublanguage
- widget_sublanguage_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sublanguage/include/editor-button-script.php
- 25× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/sublanguage/include/extra-post-metabox.php:5
- > PHP Fatal error
Uncaught Error: Class 'Sublanguage_admin' not found in wp-content/plugins/sublanguage/class-admin-ui.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/sublanguage/include/settings-page.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sublanguage/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sublanguage/sublanguage.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/sublanguage/include/settings-post-option-page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/sublanguage/include/nav-menu-item-metabox.php:3
- > PHP Fatal error
Uncaught Error: Class 'Sublanguage_rewrite' not found in wp-content/plugins/sublanguage/class-admin.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sublanguage/include/posts-form-language-tabs.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/sublanguage/include/language-settings-metabox.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 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
4 plugin tags: multilanguage, translation, multilingual, language
sublanguage/sublanguage.php Passed 13 tests
The primary PHP file in "Sublanguage" version 2.10 is used by WordPress to initiate all plugin functionality
50 characters long description:
Plugin for building a site with multiple languages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,352 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 3,053 | 2,704 | 4,309 |
PO File | 3 | 148 | 158 | 430 |
JavaScript | 3 | 40 | 11 | 282 |
Markdown | 1 | 131 | 0 | 265 |
CSS | 2 | 0 | 1 | 66 |
PHP code Passed 2 tests
An overview 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.54 |
Average class complexity | 98.89 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 292 | |
▷ Static methods | 2 | 0.68% |
▷ Public methods | 283 | 96.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 3.08% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin