83% intelly-related-posts

Code Review | Inline Related Posts

WordPress plugin Inline Related Posts scored83%from 54 tests.

About plugin

  • Plugin page: intelly-related-p...
  • Plugin version: 3.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.3
  • WordPress version: 6.3.1
  • First release: May 14, 2015
  • Latest release: Oct 17, 2023
  • Number of updates: 90
  • Update frequency: every 34.2 days
  • Top authors: IntellyWP (80%)data443 (21.11%)

Code review

54 tests

User reviews

70 reviews

Install metrics

100,000+ active /1,093,111 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.95MB] [CPU: ▲10.11ms] Passed 4 tests

This is a short check of server-side resources used by Inline Related Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.46 ▲1.0050.64 ▲14.30
Dashboard /wp-admin4.29 ▲0.9985.36 ▲35.20
Posts /wp-admin/edit.php4.33 ▲0.9755.06 ▲6.90
Add New Post /wp-admin/post-new.php6.80 ▲0.9198.54 ▲10.55
Media Library /wp-admin/upload.php4.13 ▲0.9141.02 ▲8.69
Inline Related Posts /wp-admin/options-general.php?page=intelly-related-posts4.1145.48

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 158 new files
Database: no new tables, 12 new options
New WordPress options
IRP_ShowActivationNotice
can_compress_scripts
IRP_PluginFirstInstall
widget_theysaidso_widget
IRP_PluginInstallDate[intelly-related-posts]
widget_recent-comments
IRP_PluginUpdateDate[intelly-related-posts]
theysaidso_admin_options
widget_recent-posts
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Inline Related Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▲0.071.56 ▼0.0140.20 ▼0.96
Dashboard /wp-admin2,202 ▲245.62 ▼0.1386.55 ▼11.0637.45 ▼4.10
Posts /wp-admin/edit.php2,101 ▲12.09 ▲0.0634.43 ▼6.1833.76 ▼3.70
Add New Post /wp-admin/post-new.php6,245 ▲4,71920.91 ▼2.51863.16 ▲210.6154.08 ▼0.76
Media Library /wp-admin/upload.php1,407 ▲74.19 ▲0.0793.33 ▼8.1039.44 ▼5.76
Inline Related Posts /wp-admin/options-general.php?page=intelly-related-posts1,69411.06350.0885.23

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 13 options in the database
    • can_compress_scripts
    • db_upgraded
    • IRP_PluginUpdateDate[intelly-related-posts]
    • IRP_Active
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • IRP_PluginFirstInstall
    • IRP_PluginInstallDate[intelly-related-posts]
    • IRP_ShowWhatsNew
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/intelly-related-posts/includes/uninstall.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/intelly-related-posts/includes/admin/metabox.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'IRP_Options' not found in wp-content/plugins/intelly-related-posts/includes/classes/utils/AppOptions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/intelly-related-posts/includes/install.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/intelly-related-posts/index.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/intelly-related-posts/includes/admin/button-mce.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/intelly-related-posts/includes/core.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Some example of famous websites with "Related post box"), #2 (An example of a style that you can use), #3 (Another example of a style that you can use), #4 (Another example of a style that you can use), #5 (Hover effect is allowed using this theme), #6 (Our Intelly Line Breaks technology which detects grammar rules and avoids content breaks.), #7 (The backend of our plugin. Live preview available and super fast options to fit your theme style.), #8 (A Box Theme of Inline Related Posts PRO. Check other PREMIUM feature here. (https://intellywp.com/intelly-related-posts/)), #9 (Another Box Theme of Inline Related Posts PRO. Check other PREMIUM feature here. (https://intellywp.com/intelly-related-posts/))
  • Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
The official readme.txt is a good inspiration

intelly-related-posts/index.php 85% from 13 tests

The main file in "Inline Related Posts" v. 3.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.6" instead of "3.6.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("intelly-related-posts.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin8,571 lines of code in 114 files:
LanguageFilesBlank linesComment linesLines of code
PHP364702544,747
SVG1002,671
JavaScript6611589690
HTML140194
CSS4136168
PO File55390
JSON10011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity25.27
▷ Minimum class complexity1.00
▷ Maximum class complexity123.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods308
▷ Static methods00.00%
▷ Public methods27789.94%
▷ Protected methods103.25%
▷ Private methods216.82%
Functions40
▷ Named functions3895.00%
▷ Anonymous functions25.00%
Constants54
▷ Global constants54100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.41MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png4.03KB3.29KB▼ 18.38%
assets/images/email.png0.56KB0.51KB▼ 10.21%
assets/images/simple-arrow.png1.26KB0.24KB▼ 80.72%
screenshot-9.png28.76KB13.61KB▼ 52.68%
screenshot-3.png51.36KB30.56KB▼ 40.50%