94% wpml-to-wp-api

Code Review | WPML to WP API

WordPress plugin WPML to WP API scored 94% from 54 tests.

About plugin

  • Plugin page: wpml-to-wp-api
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.1-4.2.1
  • WordPress version: 5.9.2
  • First release: May 4, 2015
  • Latest release: May 4, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ryuheixys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,468 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼311.49ms] Passed 4 tests

This is a short check of server-side resources used by WPML to WP API
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0161.23 ▼0.88
Dashboard /wp-admin3.41 ▲0.0137.65 ▼0.77
Posts /wp-admin/edit.php3.65 ▲0.0148.77 ▲4.31
Add New Post /wp-admin/post-new.php6.88 ▼0.08105.77 ▼1,241.00
Media Library /wp-admin/upload.php3.30 ▲0.0024.74 ▼3.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WPML to WP API
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2715.29 ▼0.306.30 ▼0.382.78 ▼0.42
Dashboard /wp-admin2,881 ▲206.11 ▼0.05116.81 ▼12.29157.21 ▼3.99
Posts /wp-admin/edit.php2,688 ▼63.25 ▼0.0061.82 ▼0.49138.85 ▼1.06
Add New Post /wp-admin/post-new.php1,690 ▲2920.97 ▲4.64445.38 ▲7.53159.12 ▼31.86
Media Library /wp-admin/upload.php1,698 ▼35.47 ▼0.03146.51 ▼4.45181.22 ▼14.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpml-to-wp-api/wpml-to-wp-api.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wpml-to-wp-api === )
  • Screenshots: Screenshot #1 (No screenshots since this works in the background.) image missing
Please take inspiration from this readme.txt

wpml-to-wp-api/wpml-to-wp-api.php Passed 13 tests

The main PHP script in "WPML to WP API" version 0.1 is automatically included on every request by WordPress
76 characters long description:
A simple wordpress plugin that makes WP API return the right language stuff.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151412

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin