83% bh-related-post

Code Review | BH Related Post

WordPress plugin BH Related Post scored 83% from 54 tests.

About plugin

  • Plugin page: bh-related-post
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2013
  • Latest release: Dec 7, 2013
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: masumbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,117 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.81ms] Passed 4 tests

Server-side resources used by BH Related Post
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.18 ▼0.59
Dashboard /wp-admin3.32 ▲0.0153.70 ▲4.80
Posts /wp-admin/edit.php3.37 ▲0.0149.79 ▲1.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.53 ▼3.77
Media Library /wp-admin/upload.php3.24 ▲0.0135.89 ▼4.09

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for BH Related Post
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.68 ▼0.697.23 ▲5.5842.25 ▼2.06
Dashboard /wp-admin2,209 ▲214.87 ▼0.94112.77 ▼4.6942.27 ▼2.40
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0435.97 ▼2.2632.16 ▼1.89
Add New Post /wp-admin/post-new.php1,534 ▲1123.12 ▼0.13627.60 ▲41.1654.48 ▼0.46
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.0395.47 ▼8.1241.48 ▼0.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bh-related-post/bh-related-post.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
  • Donate link: Please fix this invalid URI: ""
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can take inspiration from this readme.txt

bh-related-post/bh-related-post.php Passed 13 tests

The entry point to "BH Related Post" version 1.0 is a PHP file that has certain tags in its header comment area
138 characters long description:
This plugin for Related post. This plugin will display your related post with jcarousel slider. It's build with jquery ui jcarsoul plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin192 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1213105
PHP1111444
JavaScript26343

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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
There were not PNG files found in your plugin