68% related-posts-via-taxonomies

Code Review | Related Posts via Taxonomies

WordPress plugin Related Posts via Taxonomies scored68%from 54 tests.

About plugin

  • Plugin page: related-posts-via...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 3, 2012
  • Latest release: Jun 25, 2013
  • Number of updates: 11
  • Update frequency: every 32.6 days
  • Top authors: alphasis (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /25,849 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.86MB] [CPU: ▼33.67ms] Passed 4 tests

This is a short check of server-side resources used by Related Posts via Taxonomies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.97 ▼3.14
Dashboard /wp-admin3.09 ▼0.2227.68 ▼23.68
Posts /wp-admin/edit.php3.09 ▼0.2722.87 ▼25.64
Add New Post /wp-admin/post-new.php3.09 ▼2.8023.47 ▼73.81
Media Library /wp-admin/upload.php3.09 ▼0.1427.68 ▼11.55
Related Posts via Taxonomies /wp-admin/options-general.php?page=related-posts-via-taxonomies3.0924.62

Server storage [IO: ▲0.67MB] [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: 16 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
related_posts_via_taxonomies

Browser metrics Passed 4 tests

A check of browser resources used by Related Posts via Taxonomies
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.20 ▼0.162.19 ▲0.2344.89 ▲3.62
Dashboard /wp-admin2,199 ▲195.60 ▼0.0396.82 ▲1.6441.55 ▼4.49
Posts /wp-admin/edit.php2,104 ▲42.14 ▲0.1337.71 ▲0.5435.11 ▼3.09
Add New Post /wp-admin/post-new.php1,528 ▲217.64 ▲0.17609.25 ▼70.7255.45 ▼9.43
Media Library /wp-admin/upload.php1,401 ▲14.32 ▲0.0897.91 ▼8.5642.77 ▼1.19
Related Posts via Taxonomies /wp-admin/options-general.php?page=related-posts-via-taxonomies1,3321.7330.4945.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method relatedPostsViaTaxonomies_admin::add() should not be called statically
  • This plugin does not fully uninstall, leaving 7 options in the database
    • related_posts_via_taxonomies
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% 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
    • > GET request to /wp-admin/options-general.php?page=related-posts-via-taxonomies
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method relatedPostsViaTaxonomies_admin::add() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=related-posts-via-taxonomies
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method relatedPostsViaTaxonomies_admin::head() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=related-posts-via-taxonomies
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method relatedPostsViaTaxonomies_admin::admin() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=related-posts-via-taxonomies
    • > Notice in wp-content/plugins/related-posts-via-taxonomies/includes/admin.php+60
    Undefined index: submit

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/related-posts-via-taxonomies/related-posts-via-taxonomies.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/related-posts-via-taxonomies/includes/admin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Display ( If the user is not logged in. )), #2 (Display ( If the user is logged in. )), #3 (Settings » Related Posts via Taxonomies), #4 (Related Posts via Taxonomies - Options » Display), #5 (Related Posts via Taxonomies - Options » Order), #6 (Related Posts via Taxonomies - Options » Exclude), #7 (Related Posts via Taxonomies - Options » Post types), #8 (Related Posts via Taxonomies - Options » Promotion)
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can look at the official readme.txt

related-posts-via-taxonomies/related-posts-via-taxonomies.php 92% from 13 tests

The entry point to "Related Posts via Taxonomies" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 215 characters long)

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
Everything looks great! No dangerous files found in this plugin798 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP48920684
PO File1524114

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity33.33
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity20.40
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin