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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.89ms] Passed 4 tests
An overview of server-side resources used by Language Downloader
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.93 ▼2.17 |
Dashboard /wp-admin | 3.32 ▲0.01 | 40.65 ▼11.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.91 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 76.44 ▼16.10 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.87 ▲1.88 |
Language Downloader /wp-admin/tools.php?page=ld_language_downloader | 3.83 | 484.10 |
Server storage [IO: ▲0.01MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Language Downloader
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.73 ▲0.34 | 1.85 ▲0.16 | 35.70 ▼0.20 |
Dashboard /wp-admin | 2,199 ▲19 | 5.64 ▼0.03 | 93.60 ▲6.95 | 40.66 ▼0.81 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.07 | 32.88 ▼2.71 | 30.18 ▼5.70 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.11 ▲5.11 | 659.77 ▲54.72 | 49.26 ▼25.91 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.16 ▼0.10 | 94.94 ▼4.36 | 41.73 ▼0.27 |
Language Downloader /wp-admin/tools.php?page=ld_language_downloader | 1,319 | 1.99 | 20.62 | 105.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 131 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=ld_language_downloader
- > Notice in wp-content/plugins/language-downloader/language-downloader.php+54
Undefined index: lang
- 131 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=ld_language_downloader
- > Notice in wp-content/plugins/language-downloader/language-downloader.php+55
Undefined variable: selected
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/language-downloader/language-downloader.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: languages, translation
language-downloader/language-downloader.php 92% from 13 tests
The primary PHP file in "Language Downloader" version 0.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
No dangerous file extensions were detected169 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSX | 1 | 11 | 6 | 88 |
JSON | 1 | 1 | 0 | 45 |
PHP | 1 | 11 | 15 | 35 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected