Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼8.04ms] Passed 4 tests
An overview of server-side resources used by WPTranslator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 35.34 ▼2.71 |
Dashboard /wp-admin | 3.46 ▲0.11 | 44.54 ▼12.01 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 47.39 ▲6.89 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 81.00 ▼15.68 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 32.78 ▼1.76 |
WPTranslator /wp-admin/options-general.php?page=WPTranslator_options | 3.36 | 30.26 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 236 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
WPTranslator |
Browser metrics Passed 4 tests
A check of browser resources used by WPTranslator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.98 ▼0.70 | 7.53 ▲5.88 | 38.35 ▼0.32 |
Dashboard /wp-admin | 2,207 ▲16 | 5.80 ▲0.92 | 105.15 ▲1.94 | 37.72 ▼3.88 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▼0.03 | 39.65 ▲4.55 | 35.71 ▲5.61 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.57 ▼5.73 | 649.34 ▼24.29 | 51.18 ▼4.35 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.26 ▲0.06 | 96.30 ▼7.66 | 41.47 ▼3.50 |
WPTranslator /wp-admin/options-general.php?page=WPTranslator_options | 3,142 | 1.76 | 30.13 | 29.32 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- WPTranslator
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== wptranslator ===
)
wptranslator/WPTranslator.php 85% from 13 tests
The entry point to "WPTranslator" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wptranslator.php" instead of "WPTranslator.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin599 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 135 | 54 | 599 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 45.50 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 5.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 21 | |
▷ Static methods | 9 | 42.86% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
233 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/fr.png | 0.52KB | 0.62KB | 0.00% |
flags/lk.png | 0.95KB | 1.18KB | 0.00% |
flags/gm.png | 0.50KB | 0.48KB | ▼ 4.50% |
flags/de.png | 0.47KB | 0.50KB | 0.00% |
flags/sl.png | 0.42KB | 0.41KB | ▼ 3.23% |