89% curatewp-related-posts

Code Review | Related Posts by CurateWP

WordPress plugin Related Posts by CurateWP scored89%from 54 tests.

About plugin

  • Plugin page: curatewp-related-...
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.5.1
  • WordPress version: 6.3.1
  • First release: Apr 5, 2019
  • Latest release: Oct 4, 2020
  • Number of updates: 15
  • Update frequency: every 36.7 days
  • Top authors: jrtashjian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /787 total downloads

Benchmarks

Plugin footprint 83% 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.13MB] [CPU: ▼23.35ms] Passed 4 tests

This is a short check of server-side resources used by Related Posts by CurateWP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1643.73 ▼11.33
Dashboard /wp-admin3.45 ▲0.1050.75 ▼20.28
Posts /wp-admin/edit.php3.56 ▲0.2151.42 ▼8.15
Add New Post /wp-admin/post-new.php4.96 ▼0.9254.96 ▼53.64
Media Library /wp-admin/upload.php3.37 ▲0.1439.91 ▼0.24

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_cwprp_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Related Posts by CurateWP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.18 ▼1.071.96 ▲0.2443.54 ▲0.83
Dashboard /wp-admin2,209 ▲245.86 ▼0.04125.39 ▲13.4744.01 ▲2.34
Posts /wp-admin/edit.php2,092 ▼01.98 ▼0.0639.67 ▲0.4334.94 ▼1.04
Add New Post /wp-admin/post-new.php6,186 ▲4,66519.18 ▼4.19943.45 ▲254.6356.03 ▲1.05
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.0098.72 ▼20.1146.85 ▲1.05

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_cwprp_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 86% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

curatewp-related-posts/curatewp-related-posts.php 77% from 13 tests

This is the main PHP file of "Related Posts by CurateWP" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected18,529 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JSON30017,761
PHP12148355707
PO File1203454
JavaScript1056
CSS1101

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity16.80
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods37
▷ Static methods1232.43%
▷ Public methods3697.30%
▷ Protected methods00.00%
▷ Private methods12.70%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin