Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.83ms] Passed 4 tests
This is a short check of server-side resources used by WP Base Translate
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.16 ▼3.83 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.49 ▲4.96 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.84 ▼4.44 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 98.57 ▼2.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.08 ▼0.59 |
All Languages /wp-admin/edit.php?post_type=language | 3.30 | 34.62 |
Add New /wp-admin/post-new.php?post_type=language | 3.33 | 45.60 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_page_language_relations |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Base Translate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.27 ▼1.48 | 1.68 ▼0.09 | 41.03 ▼8.25 |
Dashboard /wp-admin | 2,237 ▲51 | 5.88 ▼0.06 | 103.76 ▼16.63 | 38.04 ▼9.23 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.08 ▲0.09 | 36.86 ▼5.01 | 33.41 ▼4.30 |
Add New Post /wp-admin/post-new.php | 6,277 ▲4,749 | 26.00 ▲7.75 | 812.98 ▲203.00 | 53.11 ▼5.28 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.26 ▼0.05 | 93.03 ▼12.12 | 40.38 ▼1.89 |
All Languages /wp-admin/edit.php?post_type=language | 1,098 | 1.95 | 30.05 | 29.43 |
Add New /wp-admin/post-new.php?post_type=language | 1,720 | 3.56 | 66.49 | 35.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_page_language_relations
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-base-translate/wp-base-translate.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-base-translate ===
)
wp-base-translate/wp-base-translate.php Passed 13 tests
"WP Base Translate" version 3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
This plugin is used to translate Posts, Pages & every other elements from CPT.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin492 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 101 | 140 | 411 |
JavaScript | 1 | 2 | 0 | 28 |
Sass | 1 | 7 | 0 | 28 |
CSS | 1 | 1 | 1 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 66.00 |
▷ Minimum class complexity | 66.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin