Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.18ms] Passed 4 tests
A check of server-side resources used by Directorist WPML Integration - Multilingual Directory Solution
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.66 ▲0.56 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.46 ▼4.73 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.02 ▲4.30 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.80 ▼9.39 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.05 ▼3.17 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Directorist WPML Integration - Multilingual Directory Solution: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▲0.02 | 2.31 ▲0.34 | 43.28 ▼1.15 |
Dashboard /wp-admin | 2,195 ▲21 | 5.66 ▲0.02 | 90.28 ▼2.15 | 38.41 ▼3.11 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 39.25 ▲2.76 | 35.48 ▼4.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.89 ▼0.27 | 678.39 ▼5.97 | 55.07 ▲2.04 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.21 ▼0.07 | 96.94 ▼3.76 | 47.32 ▲0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Directorist_WPML_Integration\\Controller\\Asset\\AssetEnqueuer' not found in wp-content/plugins/directorist-wpml-integration/app/Controller/Asset/AdminAsset.php:5
- > PHP Fatal error
Uncaught Error: Class 'Directorist_WPML_Integration\\Utility\\Enqueuer' not found in wp-content/plugins/directorist-wpml-integration/app/Controller/Asset/AssetEnqueuer.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/directorist-wpml-integration/helper/const.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/directorist-wpml-integration/helper/const.php:40
- > PHP Fatal error
Uncaught Error: Class 'Directorist_WPML_Integration\\Controller\\Asset\\AssetEnqueuer' not found in wp-content/plugins/directorist-wpml-integration/app/Controller/Asset/PublicAsset.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/directorist-wpml-integration/helper/const.php:40
- > 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
4 plugin tags: wpml, directorist wpml, directory, directorist
directorist-wpml-integration/directorist-wpml-integration.php Passed 13 tests
This is the main PHP file of "Directorist WPML Integration - Multilingual Directory Solution" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
WPML integration plugin for Directorist.
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 plugin2,497 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 551 | 833 | 1,547 |
JavaScript | 10 | 89 | 265 | 509 |
CSS | 9 | 56 | 3 | 279 |
XML | 1 | 16 | 14 | 162 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 12.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 1 | 5.56% |
Methods | 109 | |
▷ Static methods | 13 | 11.93% |
▷ Public methods | 101 | 92.66% |
▷ Protected methods | 6 | 5.50% |
▷ Private methods | 2 | 1.83% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin