84% hu-permalinks

Code Review | HU Permalinks

WordPress plugin HU Permalinks scored84%from 54 tests.

About plugin

  • Plugin page: hu-permalinks
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.1-3.5
  • WordPress version: 6.3.1
  • First release: Dec 3, 2010
  • Latest release: Oct 3, 2013
  • Number of updates: 41
  • Update frequency: every 25.2 days
  • Top authors: henrichro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,439 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.01MB] [CPU: ▼9.93ms] Passed 4 tests

A check of server-side resources used by HU Permalinks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.21 ▼4.77
Dashboard /wp-admin3.31 ▲0.0150.54 ▼4.26
Posts /wp-admin/edit.php3.36 ▲0.0146.95 ▼5.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.69 ▼24.97
Media Library /wp-admin/upload.php3.24 ▲0.0138.02 ▲2.69

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

HU Permalinks: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.181.62 ▼0.5145.08 ▲1.83
Dashboard /wp-admin2,198 ▲215.61 ▼0.0096.46 ▼4.0540.09 ▼2.99
Posts /wp-admin/edit.php2,103 ▼01.97 ▼0.0535.13 ▼6.4432.89 ▼8.92
Add New Post /wp-admin/post-new.php1,526 ▼1023.22 ▲5.03649.00 ▼0.3858.87 ▼4.70
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.1096.30 ▼17.2140.56 ▼1.66

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hu-permalinks/hu-permalinks.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Fixing the hungarian letters with accents and symbols in the permalinks.)
You can look at the official readme.txt

hu-permalinks/hu-permalinks.php Passed 13 tests

This is the main PHP file of "HU Permalinks" version 1.02, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Fixing the hungarian letters with accents in the permalinks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13814

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.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected