77% greek-multi-tool

Code Review | Greek Multi Tool - Fix peralinks, accents, auto create menus and more

WordPress plugin Greek Multi Tool - Fix peralinks, accents, auto create menus and more scored77%from 54 tests.

About plugin

  • Plugin page: greek-multi-tool
  • Plugin version: 2.3.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2022
  • Latest release: Oct 5, 2023
  • Number of updates: 51
  • Update frequency: every 11.1 days
  • Top authors: bigdropgr (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /4,495 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Greek Multi Tool - Fix peralinks, accents, auto create menus and more
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.62 ▼2.14
Dashboard /wp-admin3.43 ▲0.0949.28 ▼8.63
Posts /wp-admin/edit.php3.55 ▲0.1945.22 ▼3.97
Add New Post /wp-admin/post-new.php6.02 ▲0.1381.35 ▼14.10
Media Library /wp-admin/upload.php3.36 ▲0.1341.29 ▲4.95

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: 1 new table, 10 new options
New tables
wp_grmlt
New WordPress options
grmlt_redirect
theysaidso_admin_options
grmlt_uar_js
widget_recent-comments
grmlt_text
widget_theysaidso_widget
db_upgraded
widget_recent-posts
grmlt_diphthongs
can_compress_scripts

Browser metrics Passed 4 tests

Greek Multi Tool - Fix peralinks, accents, auto create menus and more: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17513.89 ▼0.6620.28 ▲18.6641.96 ▲1.26
Dashboard /wp-admin2,210 ▲335.62 ▼0.0794.23 ▲7.9242.99 ▲1.97
Posts /wp-admin/edit.php2,112 ▲121.97 ▲0.0133.82 ▼2.1334.29 ▼5.05
Add New Post /wp-admin/post-new.php1,538 ▲1223.20 ▼0.39683.58 ▲27.1253.67 ▼5.04
Media Library /wp-admin/upload.php1,412 ▲94.16 ▼0.0997.71 ▼12.2243.58 ▼3.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/greek-multi-tool/public/partials/grmlt-plugin-public-display.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require(): Failed opening required 'WP_PLUGIN_DIR/greek-multi-tool/admin/functions/menu-creation.php' (include_path='.:/usr/share/php') in wp-content/plugins/greek-multi-tool/admin/partials/settings-page/menu-builder.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/greek-multi-tool/admin/partials/settings-page/301-redirect.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_setting() in wp-content/plugins/greek-multi-tool/admin/partials/settings-page/grmlt-plugin-admin-main-settings-page.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/greek-multi-tool/admin/partials/settings-page/convert-old-permalinks.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/greek-multi-tool/admin/partials/settings-page/permalinks-settings.php:4
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/greek-multi-tool/admin/partials/settings-page/menu-builder.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/greek-multi-tool/admin/partials/settings-page/uppercase-accent-remover-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/greek-multi-tool/admin/functions/oldtranslator.php:65
    • > PHP Warning
      require(WP_PLUGIN_DIR/greek-multi-tool/admin/functions/menu-creation.php): failed to open stream: No such file or directory in wp-content/plugins/greek-multi-tool/admin/partials/settings-page/menu-builder.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #2 (Greeklish Permalink Switch), #3 (Remove Uppercase Accents Switch), #4 (Greek Diphthongs Options), #5 (Convert Old Permalinks), #6 (Remove One/Two Letter Words), #7 (Exclude Stop words from permalinks)
Please take inspiration from this readme.txt

greek-multi-tool/grmlt-plugin.php 77% from 13 tests

Analyzing the main PHP file in "Greek Multi Tool - Fix peralinks, accents, auto create menus and more" version 2.3.0
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("greek-multi-tool.php" instead of "grmlt-plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,583 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP232936801,155
PO File16175203
CSS51319159
JavaScript496366

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.57
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods517.24%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/grmlt-wave.png11.03KB4.53KB▼ 58.93%
admin/images/icon-256x256.png10.46KB6.31KB▼ 39.70%
admin/images/icon-128x128.png5.52KB3.75KB▼ 32.00%
admin/images/grmlt-welcome.png16.69KB7.03KB▼ 57.88%