Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.01ms] Passed 4 tests
Analyzing server-side resources used by 012 Ps Multi Languages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.13 ▼5.38 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.95 ▼5.80 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.05 ▲4.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.14 ▼7.51 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.75 ▲2.67 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 305 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
012 Ps Multi Languages: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲78 | 13.24 ▼1.16 | 1.52 ▼0.39 | 30.63 ▼13.29 |
Dashboard /wp-admin | 2,219 ▲27 | 4.89 ▼0.11 | 97.22 ▼15.35 | 53.94 ▲8.20 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 1.98 ▼0.03 | 39.75 ▲4.10 | 51.45 ▲14.89 |
Add New Post /wp-admin/post-new.php | 1,550 ▲20 | 23.40 ▲0.26 | 665.00 ▲24.16 | 58.52 ▼11.99 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.23 ▼0.06 | 100.42 ▲0.91 | 53.89 ▲11.69 |
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 were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/012-ps-multi-languages/config/_config-$blog_id.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/012-ps-multi-languages/config/_config.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/012-ps-multi-languages/ps-multi-languages.php:202
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/012-ps-multi-languages/012-m17n-config/config/_config.php:12
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/012-ps-multi-languages/ps-multi-languages.php on line 117
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/012-ps-multi-languages/012-m17n-config/config/_config-$blog_id.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (category list.), #2 (add category.), #3 (post list.), #4 (edit post edit page edit custom post.)
- Requires at least: Version format is invalid
012-ps-multi-languages/ps-multi-languages.php 92% from 13 tests
The main PHP script in "012 Ps Multi Languages" version 1.6 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("012-ps-multi-languages.php" instead of "ps-multi-languages.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,455 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 373 | 911 | 1,197 |
JavaScript | 3 | 14 | 19 | 130 |
CSS | 2 | 10 | 6 | 128 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 80.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 79 | 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 | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
288 PNG files occupy 0.41MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/mw.png | 0.30KB | 0.27KB | ▼ 11.29% |
flags/mk.png | 0.42KB | 0.34KB | ▼ 17.33% |
flags/lv.png | 0.29KB | 0.24KB | ▼ 17.97% |
flags/tt.png | 0.44KB | 0.40KB | ▼ 9.69% |
flags/ai.alt.png | 0.37KB | 0.29KB | ▼ 19.52% |