Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼141.62ms] Passed 4 tests
An overview of server-side resources used by Related Posts for WPML
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 32.69 ▼0.81 |
Dashboard /wp-admin | 3.08 ▲0.02 | 46.45 ▼2.19 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 47.70 ▲0.98 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 91.17 ▼556.34 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.22 ▼7.13 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Related Posts for WPML
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.24 ▲0.26 | 9.70 ▼0.57 | 45.22 ▼4.39 |
Dashboard /wp-admin | 2,975 ▲38 | 5.93 ▼0.05 | 141.68 ▼15.85 | 112.33 ▲2.58 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 64.03 ▼8.16 | 86.35 ▼9.02 |
Add New Post /wp-admin/post-new.php | 1,875 ▲271 | 19.08 ▲0.36 | 391.29 ▲23.06 | 104.81 ▼5.25 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.06 ▲0.00 | 152.47 ▼15.92 | 109.36 ▼9.13 |
Related Posts for WPML /wp-admin/init-related-posts.php | 26 | 0.90 | 0.08 | 11.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/related-posts-for-wpml/main-page.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/related-posts-for-wpml/init-related-posts.php:23
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/init-related-posts.php
- > Network (severe)
wp-admin/init-related-posts.php - Failed to load resource: the server responded with a status of 404 (Not Found)
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
2 plugin tags: wpml, related posts
related-posts-for-wpml/related-posts-for-wpml.php Passed 13 tests
Analyzing the main PHP file in "Related Posts for WPML" version 1.1
44 characters long description:
Related posts by tags for multilanguage WPML
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin192 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 63 | 37 | 192 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 6 | |
▷ Static methods | 3 | 50.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG images were found in this plugin