84% bangla-dummy-text

Code Review | Bangla Dummy Text

WordPress plugin Bangla Dummy Text scored84%from 54 tests.

About plugin

  • Plugin page: bangla-dummy-text
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Jul 18, 2017
  • Latest release: Jul 18, 2017
  • Number of updates: 5
  • Update frequency: every 15.2 days
  • Top authors: mnaopu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /759 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.06ms] Passed 4 tests

Server-side resources used by Bangla Dummy Text
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0442.27 ▲0.14
Dashboard /wp-admin3.38 ▲0.0452.15 ▲3.42
Posts /wp-admin/edit.php3.44 ▲0.0448.98 ▲2.73
Add New Post /wp-admin/post-new.php5.97 ▲0.0485.43 ▼16.94
Media Library /wp-admin/upload.php3.31 ▲0.0439.04 ▲1.82

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Bangla Dummy Text
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.73 ▲0.342.00 ▲0.1544.37 ▲1.86
Dashboard /wp-admin2,192 ▲185.56 ▼0.0686.47 ▼6.4439.31 ▼6.17
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0835.75 ▲0.8438.99 ▲6.93
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▲0.03684.07 ▲59.7756.52 ▲4.56
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0196.67 ▼16.8142.84 ▼3.05

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bangla-dummy-text/bangla-dummy-text.php:79

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot_1.png) image missing
Please take inspiration from this readme.txt

bangla-dummy-text/bangla-dummy-text.php Passed 13 tests

The principal PHP file in "Bangla Dummy Text" v. 2.0 is loaded by WordPress automatically on each request
95 characters long description:
This is a simple WordPress Bangla Dummy Text plugin. This plugin based on Bangla dummy content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin48 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201348

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Screenshot_1.png44.51KB22.92KB▼ 48.52%