74% super-related-posts

Code Review | Super Related Posts - Lightweight, High Performance Algorithm & Increase Traffic!

WordPress plugin Super Related Posts - Lightweight, High Performance Algorithm & Increase Traffic! scored74%from 54 tests.

About plugin

  • Plugin page: super-related-posts
  • Plugin version: 1.5
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 29, 2022
  • Latest release: Nov 23, 2023
  • Number of updates: 16
  • Update frequency: every 32.0 days
  • Top authors: magazine3 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /1,756 total downloads

Benchmarks

Plugin footprint 65% 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.19MB] [CPU: ▼13.86ms] Passed 4 tests

A check of server-side resources used by Super Related Posts - Lightweight, High Performance Algorithm & Increase Traffic!
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.7744.76 ▲4.60
Dashboard /wp-admin4.26 ▲0.9152.80 ▼11.16
Posts /wp-admin/edit.php4.31 ▲0.9553.54 ▲5.31
Add New Post /wp-admin/post-new.php4.04 ▼1.8544.99 ▼54.18
Media Library /wp-admin/upload.php4.18 ▲0.9546.28 ▲12.32
Super Related Posts /wp-admin/options-general.php?page=super-related-posts4.1043.37

Server storage [IO: ▲0.41MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: 2 new tables, 10 new options
New tables
wp_super_related_posts
wp_super_related_cached
New WordPress options
can_compress_scripts
theysaidso_admin_options
super_related_posts_meta
super-related-posts
widget_suprp_related_post_widget
widget_recent-comments
super-related-posts-feed
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Super Related Posts - Lightweight, High Performance Algorithm & Increase Traffic!: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,982 ▲19513.43 ▼0.8510.69 ▲8.3241.09 ▼2.08
Dashboard /wp-admin2,297 ▲1205.63 ▼0.0295.85 ▼5.9345.69 ▲2.98
Posts /wp-admin/edit.php2,210 ▲1102.00 ▲0.0042.30 ▲4.0937.19 ▼1.53
Add New Post /wp-admin/post-new.php6,470 ▲4,94427.68 ▲4.73825.59 ▲181.1835.57 ▼17.29
Media Library /wp-admin/upload.php1,506 ▲1124.25 ▲0.0297.28 ▲0.2743.90 ▲0.30
Super Related Posts /wp-admin/options-general.php?page=super-related-posts1,6432.0640.8737.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_super_related_cached
    • wp_super_related_posts
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_suprp_related_post_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • super-related-posts-feed
    • widget_recent-comments
    • super_related_posts_meta
    • super-related-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 5× 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/super-related-posts/includes/common_functions.php:858
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-related-posts/admin/super-related-posts-admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementorSuper\\add_action() in wp-content/plugins/super-related-posts/includes/elementor/widget.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/super-related-posts/admin/related-post-widget.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/super-related-posts/includes/deactivate-feedback.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: similar posts, related content, related posts, contextual related posts, related

super-related-posts/super-related-posts.php 92% from 13 tests

The main PHP file in "Super Related Posts - Lightweight, High Performance Algorithm & Increase Traffic!" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 153 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 detected5,638 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP166923244,682
JavaScript48045670
CSS310312286

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity21.12
▷ Minimum class complexity4.00
▷ Maximum class complexity109.00
Average method complexity5.03
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods40
▷ Static methods922.50%
▷ Public methods3587.50%
▷ Protected methods37.50%
▷ Private methods25.00%
Functions177
▷ Named functions177100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/default-image.png22.95KB25.01KB0.00%