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
Install script ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼308.44ms] Passed 4 tests
An overview of server-side resources used by Smartcat Integration for WPML
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.34 | 58.18 ▲7.90 |
Dashboard /wp-admin | 3.70 ▲0.28 | 39.39 ▲5.86 |
Posts /wp-admin/edit.php | 3.98 ▲0.34 | 40.26 ▼1.85 |
Add New Post /wp-admin/post-new.php | 7.25 ▲0.27 | 98.00 ▼1,238.54 |
Media Library /wp-admin/upload.php | 3.64 ▲0.34 | 26.45 ▲0.79 |
Smartcat Integration for WPML /wp-admin/options-general.php?page=smartcat-wpml | 3.63 | 27.06 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_smartcat_logs |
New WordPress options |
---|
smartcat_wpml_acf_using |
smartcat_wpml_secret |
Browser metrics Passed 4 tests
A check of browser resources used by Smartcat Integration for WPML
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲72 | 15.99 ▲0.40 | 5.62 ▼0.36 | 2.28 ▲0.26 |
Dashboard /wp-admin | 2,906 ▲51 | 6.05 ▼0.19 | 121.15 ▼19.44 | 158.99 ▼7.50 |
Posts /wp-admin/edit.php | 2,712 ▲21 | 3.25 ▲0.01 | 64.06 ▼6.22 | 144.64 ▼5.08 |
Add New Post /wp-admin/post-new.php | 1,674 ▲8 | 17.20 ▼3.67 | 440.58 ▲6.19 | 174.82 ▲13.83 |
Media Library /wp-admin/upload.php | 1,719 ▲21 | 5.55 ▲0.04 | 141.41 ▼1.18 | 190.21 ▲1.28 |
Smartcat Integration for WPML /wp-admin/options-general.php?page=smartcat-wpml | 1,123 | 2.69 | 52.31 | 106.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 options in the database
- smartcat_wpml_acf_using
- smartcat_wpml_secret
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/smartcat-wpml/public/partials/smartcat-wpml-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smartcat-wpml/admin/partials/smartcat-wpml-display.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/smartcat-wpml/smartcat-wpml.php:16
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in smartcat-wpml/assets to your readme.txt
smartcat-wpml/smartcat-wpml.php Passed 13 tests
Analyzing the main PHP file in "Smartcat Integration for WPML" version 1.3.42
102 characters long description:
Smartcat Integration Add-on allows you to synchronize your site content for localization with Smartcat
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
Good job! No executable or dangerous file extensions detected2,026 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 365 | 175 | 1,890 |
PO File | 1 | 12 | 12 | 64 |
SVG | 1 | 0 | 0 | 46 |
JavaScript | 1 | 4 | 0 | 26 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 135 | |
▷ Static methods | 2 | 1.48% |
▷ Public methods | 82 | 60.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 53 | 39.26% |
Functions | 16 | |
▷ Named functions | 3 | 18.75% |
▷ Anonymous functions | 13 | 81.25% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 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
There were not PNG files found in your plugin