Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.68MB] [CPU: ▼14.49ms] Passed 4 tests
Server-side resources used by Automatic Translate Slug
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.54 ▼1.95 |
Dashboard /wp-admin | 3.34 ▲0.03 | 53.36 ▲2.72 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.20 ▲0.68 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.79 | 29.30 ▼59.42 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.48 ▲3.41 |
Automatic Translate Slug /wp-admin/options-general.php?page=automatic_translate_slug | 3.20 | 29.77 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Automatic Translate Slug
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.09 ▼0.26 | 1.77 ▼0.11 | 43.55 ▼4.47 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▲0.08 | 86.79 ▼13.69 | 38.11 ▼5.44 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▼0.06 | 34.75 ▼2.43 | 35.79 ▲0.89 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.10 ▲5.05 | 659.39 ▲1.49 | 52.58 ▼8.89 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▼0.02 | 94.77 ▲0.34 | 43.65 ▼1.10 |
Automatic Translate Slug /wp-admin/options-general.php?page=automatic_translate_slug | 872 | 1.96 | 21.45 | 27.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=automatic_translate_slug
- > Notice in wp-content/plugins/automatic-translate-slug/options.php+85
Trying to access array offset on value of type bool
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 items
- 2× 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/automatic-translate-slug/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/automatic-translate-slug/automatic-translate-slug.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: slug
automatic-translate-slug/automatic-translate-slug.php Passed 13 tests
"Automatic Translate Slug" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
Make Your Post Slug Into English
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected244 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 42 | 12 | 184 |
PO File | 1 | 20 | 23 | 60 |
PHP code Passed 2 tests
A short 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.09 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 50.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin