83% poeditor

Code Review | POEditor

WordPress plugin POEditor scored83%from 54 tests.

About plugin

  • Plugin page: poeditor
  • Plugin version: 0.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2013
  • Latest release: Aug 4, 2023
  • Number of updates: 40
  • Update frequency: every 94.1 days
  • Top authors: addatwork (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /39,291 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼12.35ms] Passed 4 tests

An overview of server-side resources used by POEditor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2133.58 ▼7.12
Dashboard /wp-admin3.54 ▲0.2043.77 ▼18.77
Posts /wp-admin/edit.php3.64 ▲0.2949.15 ▲4.86
Add New Post /wp-admin/post-new.php6.22 ▲0.3372.61 ▼19.86
Media Library /wp-admin/upload.php3.48 ▲0.2533.77 ▼3.65
POEditor /wp-admin/tools.php?page=poeditor3.4029.48

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
poeditor_flash_messages
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for POEditor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.20 ▼1.481.56 ▼0.4641.20 ▼3.30
Dashboard /wp-admin2,210 ▲225.85 ▲0.81109.46 ▼7.1542.57 ▼4.50
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0739.18 ▲2.0035.67 ▲2.42
Add New Post /wp-admin/post-new.php1,540 ▲2123.46 ▲0.05697.50 ▲15.5555.17 ▼3.99
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0292.73 ▼9.6640.92 ▼8.69
POEditor /wp-admin/tools.php?page=poeditor8562.0125.4529.94

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • poeditor_flash_messages
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/poeditor/views/getProjects.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/poeditor/views/index_nokey.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/poeditor/views/customErrorPage.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/poeditor/views/changeApiKey.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/poeditor/poeditor.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/poeditor/views/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/poeditor/views/scan.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% 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
These attributes need to be fixed:
  • Contributors: The plugin tags were not defined
  • Contributors: The plugin contributors field is not present
  • Donate link: Invalid URI ("")
The official readme.txt might help

poeditor/poeditor.php Passed 13 tests

The principal PHP file in "POEditor" v. 0.9.8 is loaded by WordPress automatically on each request
104 characters long description:
This plugin will let you manage your POEditor translations directly from Wordpress via the POEditor API.

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
Good job! No executable or dangerous file extensions detected2,929 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PO File117789681,684
PHP82491901,091
CSS1250121
SVG20026
Markdown1406
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity43.00
▷ Minimum class complexity12.00
▷ Maximum class complexity74.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods3384.62%
▷ Protected methods25.13%
▷ Private methods410.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.90KB29.89KB▼ 3.28%
screenshot-2.png35.65KB34.75KB▼ 2.51%
views/_resources/img/refresh.png0.78KB0.64KB▼ 18.13%
views/_resources/img/logo.png6.63KB2.81KB▼ 57.64%
views/_resources/img/warning.png0.80KB0.63KB▼ 20.74%