Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼178.56ms] Passed 4 tests
Analyzing server-side resources used by Papi compatibility for WPML
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 27.86 ▲2.47 |
Dashboard /wp-admin | 3.06 ▲0.00 | 34.58 ▼6.33 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 34.59 ▲1.06 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 73.35 ▼710.28 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 24.96 ▲1.31 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Papi compatibility for WPML
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲15 | 16.00 ▲0.37 | 7.30 ▲0.55 | 71.34 ▼0.19 |
Dashboard /wp-admin | 2,933 ▲37 | 6.12 ▼0.04 | 113.14 ▼16.81 | 166.04 ▼5.59 |
Posts /wp-admin/edit.php | 2,743 ▲3 | 3.24 ▲0.02 | 63.05 ▼0.74 | 138.17 ▼2.80 |
Add New Post /wp-admin/post-new.php | 3,808 ▲64 | 18.86 ▼0.33 | 450.55 ▲20.56 | 155.02 ▼4.19 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.48 ▲0.00 | 138.37 ▼1.90 | 187.59 ▼3.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: types, papi, wpml, page, fields
papi-compatibility-for-wpml/papi-compatibility-for-wpml.php Passed 13 tests
The primary PHP file in "Papi compatibility for WPML" version 1.0.7 is used by WordPress to initiate all plugin functionality
51 characters long description:
Adds WPML compatibility to WordPress Page Type API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected404 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 108 | 330 | 403 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 3 | 9.38% |
▷ Public methods | 29 | 90.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.38% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
No PNG files were detected