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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.57ms] Passed 4 tests
An overview of server-side resources used by WPGlobus Translate Options
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.65 ▲4.26 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.26 ▼0.56 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.88 ▼5.98 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.85 ▲10.74 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.57 ▲0.02 |
Server storage [IO: ▲6.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
WPGlobus Translate Options: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.31 | 1.74 ▲0.25 | 44.33 ▲1.32 |
Dashboard /wp-admin | 2,195 ▲21 | 5.65 ▲0.04 | 88.39 ▲4.10 | 42.44 ▼2.44 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.05 | 34.18 ▼5.67 | 37.59 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 18.14 ▼5.13 | 587.26 ▼91.92 | 69.14 ▲11.78 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.00 | 100.35 ▼13.23 | 43.03 ▼6.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wpglobus-translate-options/includes/templates/about.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/wpglobus-translate-options/includes/page-theme.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/wpglobus-translate-options/includes/templates/page-theme.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wpglobus-translate-options/includes/class-wpglobus-to-rest-controller.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: translate, wpglobus, multilingual, localization, translation
wpglobus-translate-options/wpglobus-translate-options.php Passed 13 tests
Analyzing the main PHP file in "WPGlobus Translate Options" version 2.2.0
55 characters long description:
Translate options from 'wp_options' table for WPGlobus.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,292 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 577 | 893 | 1,872 |
JSON | 4 | 0 | 0 | 204 |
Markdown | 1 | 53 | 0 | 113 |
JavaScript | 6 | 13 | 26 | 63 |
CSS | 3 | 0 | 1 | 40 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 61.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 16 | 22.22% |
▷ Public methods | 58 | 80.56% |
▷ Protected methods | 14 | 19.44% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 3 | 18.75% |
▷ Class constants | 13 | 81.25% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin