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
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.18ms] Passed 4 tests
Server-side resources used by nLingual
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.61 ▲3.95 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.81 ▼13.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.05 ▼2.48 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.23 ▼18.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.64 ▲2.12 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
nLingual: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.35 | 1.65 ▼0.01 | 40.66 ▲0.09 |
Dashboard /wp-admin | 2,192 ▲14 | 5.53 ▼0.08 | 84.01 ▼19.03 | 40.69 ▲0.28 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.01 | 38.06 ▲1.23 | 33.73 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.87 ▼0.11 | 661.98 ▲38.82 | 55.59 ▲2.59 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.04 | 94.54 ▼1.45 | 42.40 ▼4.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/nlingual/uninstall.php
- 29× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'nLingual\\Handler' not found in wp-content/plugins/nlingual/includes/class-nlingual-localizer.php:28
- > PHP Fatal error
Uncaught Error: Class 'WP_Locale' not found in wp-content/plugins/nlingual/includes/class-nlingual-locale.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nlingual/documentation/localizables/sidebar.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nlingual/includes/presets-languages.php:16
- > PHP Fatal error
Uncaught Error: Class 'nLingual\\Handler' not found in wp-content/plugins/nlingual/includes/class-nlingual-installer.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/nlingual/documentation/post-translation/translation.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nlingual/documentation/localizer/localize-this.php:1
- > PHP Fatal error
Uncaught Error: Class 'nLingual\\Handler' not found in wp-content/plugins/nlingual/includes/class-nlingual-backend.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nlingual/documentation/synchronizer/cloning.php:1
- > PHP Fatal error
Uncaught Error: Class 'nLingual\\Handler' not found in wp-content/plugins/nlingual/includes/class-nlingual-frontend.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: bilingual, translation, language, multilingual
nlingual/nlingual.php 92% from 13 tests
The main PHP file in "nLingual" ver. 2.9.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
Good job! No executable or dangerous file extensions detected6,471 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 1,609 | 6,350 | 5,349 |
JSON | 1 | 0 | 0 | 518 |
JavaScript | 2 | 132 | 130 | 339 |
Sass | 2 | 38 | 0 | 263 |
CSS | 2 | 1 | 2 | 2 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 38.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 2 | 8.33% |
▷ Concrete classes | 22 | 91.67% |
▷ Final classes | 22 | 100.00% |
Methods | 275 | |
▷ Static methods | 244 | 88.73% |
▷ Public methods | 249 | 90.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 26 | 9.45% |
Functions | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
Constants | 13 | |
▷ Global constants | 13 | 100.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
PNG images were not found in this plugin