83% autoconvert-greeklish-permalinks

Code Review | AutoConvert Greeklish Permalinks

WordPress plugin AutoConvert Greeklish Permalinks scored83%from 54 tests.

About plugin

  • Plugin page: autoconvert-greek...
  • Plugin version: 4.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 16, 2017
  • Latest release: Sep 22, 2023
  • Number of updates: 112
  • Update frequency: every 18.8 days
  • Top authors: d1m1tr1s_mav (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

20,000+ active /67,996 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.97ms] Passed 4 tests

Server-side resources used by AutoConvert Greeklish Permalinks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.28 ▼14.70
Dashboard /wp-admin3.33 ▲0.0345.17 ▼5.26
Posts /wp-admin/edit.php3.38 ▲0.0346.07 ▼1.96
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.27 ▼5.97
Media Library /wp-admin/upload.php3.25 ▲0.0336.67 ▲0.68
Convert Greek Permalinks /wp-admin/options-general.php?page=agp3.2633.13

Server storage [IO: ▲0.19MB] [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: 27 new files
Database: no new tables, 11 new options
New WordPress options
agp_automatic_post
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
agp_automatic
agp_version
widget_recent-comments
agp_automatic_tax
agp_diphthongs
...

Browser metrics Passed 4 tests

A check of browser resources used by AutoConvert Greeklish Permalinks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.28 ▼1.091.60 ▼0.2440.87 ▼3.38
Dashboard /wp-admin2,210 ▲225.88 ▲0.0398.46 ▼4.0738.53 ▼9.77
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0041.57 ▲5.5335.05 ▼1.31
Add New Post /wp-admin/post-new.php1,516 ▼417.62 ▼5.73652.77 ▼37.8767.07 ▼2.99
Media Library /wp-admin/upload.php1,392 ▲14.22 ▲0.0392.89 ▼16.1240.78 ▼9.84
Convert Greek Permalinks /wp-admin/options-general.php?page=agp1,0552.2639.7529.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • agp_version
    • db_upgraded
    • agp_automatic
    • widget_recent-posts
    • agp_automatic_post
    • widget_theysaidso_widget
    • agp_diphthongs
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 'WP_CLI_Command' not found in wp-content/plugins/autoconvert-greeklish-permalinks/includes/agp-cli.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/autoconvert-greeklish-permalinks/admin/partials/agp-automatic-taxonomies-option-view.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/autoconvert-greeklish-permalinks/admin/partials/agp-automatic-option-view.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/autoconvert-greeklish-permalinks/admin/partials/agp-automatic-posts-option-view.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/autoconvert-greeklish-permalinks/admin/partials/agp-diphthongs-option-view.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/autoconvert-greeklish-permalinks/admin/partials/agp-converter-view.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/autoconvert-greeklish-permalinks/admin/partials/agp-settings-view.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/autoconvert-greeklish-permalinks/admin/partials/agp-admin-view.php:8

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)
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: greek, links, permalinks, autoconvert, agp...

autoconvert-greeklish-permalinks/auto-gr-permalinks.php 69% from 13 tests

The entry point to "AutoConvert Greeklish Permalinks" version 4.1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.8" instead of "2.0.0")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • 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: Please rename the main PHP file in this plugin to the plugin slug ("autoconvert-greeklish-permalinks.php" instead of "auto-gr-permalinks.php")

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
Success! There were no dangerous files found in this plugin1,271 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP192629201,267
CSS2002
JavaScript2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity21.00
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods58
▷ Static methods915.52%
▷ Public methods5391.38%
▷ Protected methods00.00%
▷ Private methods58.62%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin