83% related-posts-with-slider

Code Review | Related Posts With Slider

WordPress plugin Related Posts With Slider scored 83% from 54 tests.

About plugin

  • Plugin page: related-posts-wit...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2019
  • Latest release: Jan 6, 2019
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: tanvirmelon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▲1.56ms] Passed 4 tests

Server-side resources used by Related Posts With Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.62 ▲5.85
Dashboard /wp-admin3.38 ▲0.0847.21 ▼0.59
Posts /wp-admin/edit.php3.49 ▲0.1448.03 ▲3.06
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.89 ▼1.66
Media Library /wp-admin/upload.php3.30 ▲0.0737.16 ▲5.41

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Related Posts With Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲19513.79 ▼0.599.17 ▲7.6941.60 ▼0.14
Dashboard /wp-admin2,229 ▲384.83 ▼1.08110.87 ▲8.4841.72 ▲1.05
Posts /wp-admin/edit.php2,112 ▲262.02 ▲0.0338.73 ▲2.6934.64 ▲3.15
Add New Post /wp-admin/post-new.php1,531 ▲1723.19 ▲5.55660.53 ▼1.7560.77 ▲0.48
Media Library /wp-admin/upload.php1,408 ▲204.20 ▼0.1299.78 ▼10.1245.57 ▼1.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/related-posts-with-slider/public/partials/wp-scroll-top-public-display.php
    • > /wp-content/plugins/related-posts-with-slider/admin/partials/wp-scroll-top-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: related posts, related post with slider, free related posts, easy related posts, related posts for wp...

related-posts-with-slider/tm-related-posts.php 77% from 13 tests

Analyzing the main PHP file in "Related Posts With Slider" version 1.0.0
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("related-posts-with-slider.php" instead of "tm-related-posts.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)

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
No dangerous file extensions were detected660 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS31948350
PHP13144636303
JavaScript26377

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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 files were detected