10% monk

Code Review | Monk

WordPress plugin Monk scored10%from 54 tests.

About plugin

  • Plugin page: monk
  • Plugin version: 0.7.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 26, 2017
  • Latest release: Jan 22, 2018
  • Number of updates: 34
  • Update frequency: every 10.6 days
  • Top authors: Breno Alves (70.59%)Ale correa (26.47%)leonofre (8.82%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,166 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/monk/includes/class-monk-activator.php+44
    Undefined property: WP_Error::$term_id

Server metrics [RAM: ▼0.11MB] [CPU: ▼29.57ms] Passed 4 tests

A check of server-side resources used by Monk
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.67 ▲1.2056.42 ▲17.10
Dashboard /wp-admin3.84 ▲0.5324.93 ▼22.90
Posts /wp-admin/edit.php3.84 ▲0.4827.90 ▼17.76
Add New Post /wp-admin/post-new.php3.84 ▼2.0526.41 ▼70.58
Media Library /wp-admin/upload.php3.84 ▲0.6126.21 ▼7.04

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 148 new files
Database: no new tables, 10 new options
New WordPress options
widget_monk_language_switcher
widget_recent-posts
theysaidso_admin_options
monk_settings_notice
can_compress_scripts
monk_active_languages
db_upgraded
widget_recent-comments
widget_theysaidso_widget
monk_default_language

Browser metrics Passed 4 tests

An overview of browser requirements for Monk
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲20313.70 ▼0.656.85 ▲5.1849.45 ▲4.74
Dashboard /wp-admin2,245 ▲575.86 ▼0.17108.03 ▲3.9743.82 ▲0.10
Posts /wp-admin/edit.php2,166 ▲772.18 ▲0.1241.16 ▲0.8135.93 ▲3.81
Add New Post /wp-admin/post-new.php1,599 ▲8522.93 ▲5.44675.87 ▼15.6954.96 ▲5.74
Media Library /wp-admin/upload.php1,332 ▼562.19 ▼2.0331.01 ▼68.3431.76 ▼10.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/monk/admin/class-monk-admin.php+1842
    Trying to get property 'base' of non-object
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_monk_language_switcher
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/monk/admin/partials/admin-monk-notice-render.php:13

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: multilingual, language, international, translation, multilanguage...

monk/monk.php Passed 13 tests

The main file in "Monk" v. 0.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
78 characters long description:
Monk is a lightweight translation plugin to make your content reach the world.

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
Everything looks great! No dangerous files found in this plugin10,335 lines of code in 145 files:
LanguageFilesBlank linesComment linesLines of code
SVG95005,720
PHP405801,8283,375
CSS525316900
JavaScript34043258
Markdown224082

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity41.67
▷ Minimum class complexity1.00
▷ Maximum class complexity241.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods117
▷ Static methods21.71%
▷ Public methods10892.31%
▷ Protected methods00.00%
▷ Private methods97.69%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin