90% papi-compatibility-for-wpml

Code Review | Papi compatibility for WPML

WordPress plugin Papi compatibility for WPML scored90%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: 6.3.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 /741 total downloads

Benchmarks

Plugin footprint 83% from 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.05MB] [CPU: ▼9.24ms] Passed 4 tests

A check of server-side resources used by Papi compatibility for WPML
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.59 ▼11.68
Dashboard /wp-admin3.37 ▲0.0244.23 ▼16.36
Posts /wp-admin/edit.php3.48 ▲0.1245.78 ▼2.20
Add New Post /wp-admin/post-new.php5.95 ▲0.0678.17 ▼6.72
Media Library /wp-admin/upload.php3.29 ▲0.0636.58 ▲2.82

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Papi compatibility for WPML
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.561.50 ▼0.9239.03 ▼6.73
Dashboard /wp-admin2,203 ▲124.87 ▼0.0198.36 ▼27.6639.20 ▼3.43
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0039.65 ▲1.7235.60 ▲0.08
Add New Post /wp-admin/post-new.php1,533 ▼023.23 ▲0.14667.15 ▼51.6947.12 ▼7.88
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.0296.55 ▼4.6542.08 ▼3.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wpml, papi, types, 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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin404 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP12108330403
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
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
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods32
▷ Static methods39.38%
▷ Public methods2990.62%
▷ Protected methods00.00%
▷ Private methods39.38%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin