84% media-related-posts

Code Review | Media Related Posts

WordPress plugin Media Related Posts scored84%from 54 tests.

About plugin

  • Plugin page: media-related-posts
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Feb 8, 2016
  • Latest release: Oct 23, 2019
  • Number of updates: 15
  • Update frequency: every 96.2 days
  • Top authors: hanzoZeRazor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /790 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.33ms] Passed 4 tests

A check of server-side resources used by Media Related Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.26 ▼1.73
Dashboard /wp-admin3.33 ▲0.0244.33 ▼7.48
Posts /wp-admin/edit.php3.38 ▲0.0246.20 ▲1.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.41 ▼27.38
Media Library /wp-admin/upload.php3.25 ▲0.0234.17 ▼0.74

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: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Media Related Posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.161.75 ▲0.1544.50 ▲5.05
Dashboard /wp-admin2,192 ▲145.54 ▼0.0781.22 ▼16.6536.04 ▼5.12
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0339.35 ▲3.0636.26 ▲3.00
Add New Post /wp-admin/post-new.php1,527 ▲123.00 ▼0.66684.65 ▲31.9654.45 ▼2.15
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0494.98 ▼5.0441.27 ▼4.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/media-related-posts/media-related-posts.php

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: custom column, related posts, admin, media

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

"Media Related Posts" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected85 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File12225

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG images were found in this plugin