84% pomo-editor

Code Review | PO/MO Editor

WordPress plugin PO/MO Editor scored 84% from 54 tests.

About plugin

  • Plugin page: pomo-editor
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 99.99.99-0.0.0
  • WordPress version: 6.3.1
  • First release: Apr 1, 2016
  • Latest release: Jun 6, 2018
  • Number of updates: 13
  • Update frequency: every 61.2 days
  • Top authors: dougwollison (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

2,000+ active / 36,313 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.53ms] Passed 4 tests

An overview of server-side resources used by PO/MO Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.18 ▼0.66
Dashboard /wp-admin3.46 ▲0.1647.62 ▲0.40
Posts /wp-admin/edit.php3.58 ▲0.2249.77 ▲4.78
Add New Post /wp-admin/post-new.php6.04 ▲0.1692.77 ▼2.53
Media Library /wp-admin/upload.php3.39 ▲0.1634.82 ▲0.67
PO/MO Editor /wp-admin/tools.php?page=pomo-editor3.4039.79

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/pomo-editor/" and "wp-content/uploads/"
    • (new file) wp-content/pomo-editor/.empty
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for PO/MO Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.25 ▼1.151.55 ▼0.3744.52 ▲2.90
Dashboard /wp-admin2,207 ▲195.76 ▼0.1495.22 ▼12.0838.06 ▼7.62
Posts /wp-admin/edit.php2,096 ▲72.12 ▲0.1139.42 ▲6.0435.21 ▲1.63
Add New Post /wp-admin/post-new.php1,537 ▼523.34 ▲5.13634.97 ▲34.3154.35 ▲3.53
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0397.20 ▼1.7142.18 ▲0.74
PO/MO Editor /wp-admin/tools.php?page=pomo-editor8761.9434.9625.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'POMOEditor\\Handler' not found in wp-content/plugins/pomo-editor/includes/class-pomoeditor-backend.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function POMOEditor_Autoloader\\plugin_dir_path() in wp-content/plugins/pomo-editor/includes/autoloader.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'POMOEditor\\Handler' not found in wp-content/plugins/pomo-editor/includes/class-pomoeditor-system.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'POMOEditor\\Handler' not found in wp-content/plugins/pomo-editor/includes/class-pomoeditor-manager.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pomo-editor/documentation/editor/overview.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'POMOEditor\\Handler' not found in wp-content/plugins/pomo-editor/includes/class-pomoeditor-documenter.php:23
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pomo-editor/pomo-editor.php on line 44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pomo-editor/documentation/index/overview.php:1

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No plugin tags provided

pomo-editor/pomo-editor.php Passed 13 tests

The entry point to "PO/MO Editor" version 1.4.2 is a PHP file that has certain tags in its header comment area
42 characters long description:
Edit gettext po/mo files within WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,111 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP132761,1291,451
JavaScript213928518
CSS1200133
Markdown1709

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity19.62
▷ Minimum class complexity3.00
▷ Maximum class complexity44.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes7100.00%
Methods58
▷ Static methods2848.28%
▷ Public methods5594.83%
▷ Protected methods35.17%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin