72% baw-manual-related-posts

Code Review | Manual Related Posts

WordPress plugin Manual Related Posts scored72%from 54 tests.

About plugin

  • Plugin page: baw-manual-relate...
  • Plugin version: 1.8.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Jun 18, 2012
  • Latest release: Sep 6, 2015
  • Number of updates: 67
  • Update frequency: every 17.5 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

48 reviews

Install metrics

1,000+ active /53,645 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.52ms] Passed 4 tests

An overview of server-side resources used by Manual Related Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.40 ▼6.75
Dashboard /wp-admin3.38 ▲0.0351.04 ▼15.53
Posts /wp-admin/edit.php3.43 ▲0.0747.83 ▼10.02
Add New Post /wp-admin/post-new.php5.99 ▲0.0988.89 ▼9.77
Media Library /wp-admin/upload.php3.31 ▲0.0738.17 ▼1.93
Manual Related Posts /wp-admin/options-general.php?page=bawmrp_settings3.3134.28

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Manual Related Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.72 ▲0.351.94 ▼0.2443.40 ▲0.23
Dashboard /wp-admin2,202 ▲285.62 ▼0.0483.17 ▼18.7040.88 ▼6.36
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0533.99 ▼6.7837.32 ▼1.64
Add New Post /wp-admin/post-new.php1,534 ▲822.96 ▲0.03642.78 ▼20.2758.49 ▲5.46
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.0397.17 ▼24.6045.89 ▼6.23
Manual Related Posts /wp-admin/options-general.php?page=bawmrp_settings9672.0125.9145.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bawmrp_settings
    • > Notice in wp-content/plugins/baw-manual-related-posts/inc/setting_fields.inc.php+96
    Trying to access array offset on value of type bool

SRP 0% 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
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/baw-manual-related-posts/inc/bothend-noajax.inc.php
    • > /wp-content/plugins/baw-manual-related-posts/inc/backend-noajax.inc.php
    • > /wp-content/plugins/baw-manual-related-posts/inc/frontend-noajax.inc.php
    • > /wp-content/plugins/baw-manual-related-posts/inc/about.inc.php
    • > /wp-content/plugins/baw-manual-related-posts/inc/backend-ajax.inc.php
    • > /wp-content/plugins/baw-manual-related-posts/inc/setting_fields.inc.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/baw-manual-related-posts/bawmrp.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

baw-manual-related-posts/bawmrp.php 92% from 13 tests

Analyzing the main PHP file in "Manual Related Posts" version 1.8.8
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("baw-manual-related-posts.php" instead of "bawmrp.php")

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
Good job! No executable or dangerous file extensions detected1,174 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP74532624
PO File3181250397
JavaScript2232153

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin