10% bangla-nice-slug

Code Review | Bangla Nice Slug

WordPress plugin Bangla Nice Slug scored10%from 54 tests.

About plugin

  • Plugin page: bangla-nice-slug
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 19, 2019
  • Latest release: Feb 15, 2019
  • Number of updates: 3
  • Update frequency: every 9.0 days
  • Top authors: jahedcuet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /676 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
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/bangla-nice-slug/bangla-nice-slug.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; bns_phonetic has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼55.62ms] Passed 4 tests

This is a short check of server-side resources used by Bangla Nice Slug
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.37 ▼30.98
Dashboard /wp-admin2.12 ▼1.237.47 ▼50.70
Posts /wp-admin/edit.php2.12 ▼1.246.48 ▼43.77
Add New Post /wp-admin/post-new.php2.12 ▼3.775.36 ▼97.04
Media Library /wp-admin/upload.php2.12 ▼1.115.79 ▼28.76

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Bangla Nice Slug: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.14 ▼1.461.77 ▲0.1844.72 ▲6.26
Dashboard /wp-admin2,203 ▲154.88 ▼0.9897.83 ▼2.9237.45 ▼5.61
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0336.09 ▲1.0632.88 ▼2.62
Add New Post /wp-admin/post-new.php1,514 ▼2117.51 ▼5.74686.15 ▲17.8655.40 ▲0.52
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.1294.28 ▼0.9743.41 ▲1.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/bangla-nice-slug/bangla-nice-slug.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; bns_phonetic has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • 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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bangla-nice-slug/bangla-nice-slug.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
2 plugin tags: bangla, slug

bangla-nice-slug/bangla-nice-slug.php Passed 13 tests

The main file in "Bangla Nice Slug" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Sanitize Bangla title for post slug.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182765

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin