94% i-relate

Code Review | i Relate

WordPress plugin i Relate scored 94% from 54 tests.

About plugin

  • Plugin page: i-relate
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.3
  • WordPress version: 5.8.1
  • First release: Jul 24, 2015
  • Latest release: Jul 24, 2015
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: apoorv79 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 537 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼147.08ms] Passed 4 tests

Server-side resources used by i Relate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0035.38 ▼3.40
Dashboard /wp-admin3.06 ▲0.0149.49 ▼5.02
Posts /wp-admin/edit.php3.11 ▼0.0147.57 ▼12.62
Add New Post /wp-admin/post-new.php5.42 ▼0.0299.98 ▼567.27
Media Library /wp-admin/upload.php3.00 ▲0.0037.60 ▲1.93

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for i Relate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲8016.40 ▲0.6810.53 ▼0.2846.66 ▼8.02
Dashboard /wp-admin2,973 ▲435.89 ▼0.13144.73 ▼33.47115.96 ▲0.20
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0068.06 ▼1.2597.54 ▲0.53
Add New Post /wp-admin/post-new.php1,683 ▼2,01918.73 ▲3.64379.52 ▼116.79114.62 ▲2.39
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.02165.51 ▲8.81122.55 ▼4.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/i-relate/i-relate.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: related articles, related posts, feed, random articles, similar posts...

i-relate/i-relate.php Passed 13 tests

The main PHP file in "i Relate" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
94 characters long description:
Simple WordPress Plugin to add 3 related posts at the end of the blog post from same category.

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
Success! There were no dangerous files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101229

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin