84% bollywood-dialogues

Code Review | Bollywood Dialogues

WordPress plugin Bollywood Dialogues scored84%from 54 tests.

About plugin

  • Plugin page: bollywood-dialogues
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 6.3.1
  • First release: Nov 26, 2014
  • Latest release: Oct 24, 2019
  • Number of updates: 25
  • Update frequency: every 71.7 days
  • Top authors: SarviSolutions (92%)ChetanVengurlekar (12%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /994 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.80ms] Passed 4 tests

A check of server-side resources used by Bollywood Dialogues
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.81 ▲2.32
Dashboard /wp-admin3.31 ▼0.0346.69 ▼14.24
Posts /wp-admin/edit.php3.37 ▲0.0147.91 ▼2.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.76 ▼13.26
Media Library /wp-admin/upload.php3.24 ▲0.0134.59 ▼1.11

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/bollywood-dialogues/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/bollywood-dialogues/assets/icon-256\303\227256.png"
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bollywood Dialogues
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲6914.35 ▼0.361.98 ▲0.2644.74 ▼6.64
Dashboard /wp-admin2,200 ▲205.62 ▼0.0194.31 ▼12.7745.09 ▲1.97
Posts /wp-admin/edit.php2,105 ▲51.98 ▼0.0338.85 ▲1.0935.51 ▼0.25
Add New Post /wp-admin/post-new.php1,601 ▲7522.46 ▼0.77676.51 ▼4.5136.60 ▼28.50
Media Library /wp-admin/upload.php1,405 ▲24.18 ▼0.0699.16 ▼2.1144.69 ▼2.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% 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 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× 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/bollywood-dialogues/bollywood-dialogues.php:96

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === bollywood-dialogues === )
The official readme.txt is a good inspiration

bollywood-dialogues/bollywood-dialogues.php Passed 13 tests

The main file in "Bollywood Dialogues" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
This is a plugin for the Bollywood lovers.

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 plugin88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192188

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions3100.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
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png30.36KB11.40KB▼ 62.46%
assets/screenshot-3.png2.01KB1.03KB▼ 48.59%
assets/icon-256×256.png13.05KB6.46KB▼ 50.53%
assets/screenshot-1.png2.88KB1.38KB▼ 52.02%
assets/screenshot-2.png2.19KB1.08KB▼ 50.49%