100% papi-compatibility-for-wpml

Code Review | Papi compatibility for WPML

WordPress plugin Papi compatibility for WPML scored 100% from 54 tests.

About plugin

  • Plugin page: papi-compatibilit...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 5.8.1
  • First release: Sep 23, 2015
  • Latest release: Oct 11, 2016
  • Number of updates: 21
  • Update frequency: every 19.1 days
  • Top authors: s3rgiosan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 653 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0127.86 ▲2.47
Dashboard /wp-admin3.06 ▲0.0034.58 ▼6.33
Posts /wp-admin/edit.php3.12 ▲0.0134.59 ▲1.06
Add New Post /wp-admin/post-new.php5.43 ▼0.0173.35 ▼710.28
Media Library /wp-admin/upload.php3.01 ▲0.0024.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲1516.00 ▲0.377.30 ▲0.5571.34 ▼0.19
Dashboard /wp-admin2,933 ▲376.12 ▼0.04113.14 ▼16.81166.04 ▼5.59
Posts /wp-admin/edit.php2,743 ▲33.24 ▲0.0263.05 ▼0.74138.17 ▼2.80
Add New Post /wp-admin/post-new.php3,808 ▲6418.86 ▼0.33450.55 ▲20.56155.02 ▼4.19
Media Library /wp-admin/upload.php1,752 ▼05.48 ▲0.00138.37 ▼1.90187.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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.41
Average class complexity9.33
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods39.38%
▷ Public methods2990.62%
▷ Protected methods00.00%
▷ Private methods39.38%
▷ Named functions133.33%
▷ Anonymous functions266.67%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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