10% beautiful-customizable-related-postspages-plugin

Code Review | Related Posts - Beautiful & Customizable

WordPress plugin Related Posts - Beautiful & Customizable scored10%from 54 tests.

About plugin

  • Plugin page: beautiful-customi...
  • Plugin version: 0.6-nw...
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-2.4
  • WordPress version: 6.3.1
  • First release: May 1, 2012
  • Latest release: May 31, 2012
  • Number of updates: 17
  • Update frequency: every 1.8 days
  • Top authors: sf89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,574 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/beautiful-customizable-related-postspages-plugin/leepty.php+118
    Use of undefined constant LBONSTERVERSION - assumed 'LBONSTERVERSION' (this will throw an Error in a future version of PHP)

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

A check of server-side resources used by Related Posts - Beautiful & Customizable
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.80 ▼1.72
Dashboard /wp-admin3.32 ▼0.0248.15 ▼9.05
Posts /wp-admin/edit.php3.37 ▲0.0245.77 ▼4.23
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.01 ▼24.46
Media Library /wp-admin/upload.php3.24 ▲0.0234.84 ▲0.89
Leepty Options /wp-admin/options-general.php?page=leepty_page3.1928.61

Server storage [IO: ▲0.38MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
leepty_plugin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Related Posts - Beautiful & Customizable
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.23 ▼1.152.47 ▲0.7359.22 ▲19.77
Dashboard /wp-admin2,217 ▲295.90 ▲0.99108.05 ▲3.7139.44 ▼0.88
Posts /wp-admin/edit.php2,100 ▲112.02 ▼0.0239.12 ▲0.3936.52 ▲3.23
Add New Post /wp-admin/post-new.php1,521 ▲723.34 ▲5.89695.72 ▲74.7760.83 ▲17.61
Media Library /wp-admin/upload.php1,396 ▲84.20 ▼0.0995.21 ▼1.3944.61 ▲4.01
Leepty Options /wp-admin/options-general.php?page=leepty_page9681.8724.2131.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function unregister_setting was called with an argument that is deprecated since version 4.7.0! $sanitize_callback is deprecated. The callback from register_setting() is used instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=leepty_page
    • > Notice in wp-content/plugins/beautiful-customizable-related-postspages-plugin/leepty.php+229
    Undefined index: leepty_setting_headbox_color0
    • > GET request to /wp-admin/options-general.php?page=leepty_page
    • > Notice in wp-content/plugins/beautiful-customizable-related-postspages-plugin/leepty.php+230
    Undefined index: leepty_setting_headbox_color1
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=leepty_page
    • > Notice in wp-content/plugins/beautiful-customizable-related-postspages-plugin/leepty.php+221
    Undefined index: leepty_dropdown3
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=leepty_page
    • > Notice in wp-content/plugins/beautiful-customizable-related-postspages-plugin/leepty.php+210
    Undefined index: leepty_dropdown2
    • > GET request to /wp-admin/options-general.php?page=leepty_page
    • > Notice in wp-content/plugins/beautiful-customizable-related-postspages-plugin/leepty.php+238
    Undefined index: leepty_setting_in_box_color0

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/beautiful-customizable-related-postspages-plugin/css/styles.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/beautiful-customizable-related-postspages-plugin/leepty.php:301

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === beautiful-customizable-related-postspages-plugin === )
You can look at the official readme.txt

beautiful-customizable-related-postspages-plugin/leepty.php 77% from 13 tests

The entry point to "Related Posts - Beautiful & Customizable" version 0.6-nw... is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "0.6-nw...")
  • Description: Please keep the plugin description shorter than 140 characters (currently 164 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("beautiful-customizable-related-postspages-plugin.php" instead of "leepty.php")

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 detected1,222 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113336766
PHP24872317
CSS2210139

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.34MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes.png340.51KB173.63KB▼ 49.01%
js/hs.png2.62KB7.54KB0.00%
js/hv.png2.80KB7.32KB0.00%